169675509SGreg Roach<?php 269675509SGreg Roach 369675509SGreg Roach/** 469675509SGreg Roach * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 669675509SGreg Roach * This program is free software: you can redistribute it and/or modify 769675509SGreg Roach * it under the terms of the GNU General Public License as published by 869675509SGreg Roach * the Free Software Foundation, either version 3 of the License, or 969675509SGreg Roach * (at your option) any later version. 1069675509SGreg Roach * This program is distributed in the hope that it will be useful, 1169675509SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1269675509SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1369675509SGreg Roach * GNU General Public License for more details. 1469675509SGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1669675509SGreg Roach */ 1769675509SGreg Roach 1869675509SGreg Roachdeclare(strict_types=1); 1969675509SGreg Roach 2069675509SGreg Roachnamespace Fisharebest\Webtrees\Contracts; 2169675509SGreg Roach 2269675509SGreg Roachuse Fisharebest\Webtrees\Cache; 2369675509SGreg Roach 2469675509SGreg Roach/** 2569675509SGreg Roach * Make a cache. 2669675509SGreg Roach */ 2769675509SGreg Roachinterface CacheFactoryInterface 2869675509SGreg Roach{ 2969675509SGreg Roach /** 3069675509SGreg Roach * Create an array-based cache. 3169675509SGreg Roach * 3269675509SGreg Roach * @return Cache 3369675509SGreg Roach */ 3469675509SGreg Roach public function array(): Cache; 3569675509SGreg Roach 3669675509SGreg Roach /** 3769675509SGreg Roach * Create an file-based cache. 3869675509SGreg Roach * 3969675509SGreg Roach * @return Cache 4069675509SGreg Roach */ 4169675509SGreg Roach public function file(): Cache; 4269675509SGreg Roach} 43