*/ public $cacheQueryString = false; /** * -------------------------------------------------------------------------- * Key Prefix * -------------------------------------------------------------------------- * * This string is added to all cache item names to help avoid collisions * if you run multiple applications with the same cache engine. */ public string $prefix = ''; /** * -------------------------------------------------------------------------- * Default TTL * -------------------------------------------------------------------------- * * The default number of seconds to save items when none is specified. * * WARNING: This is not used by framework handlers where 60 seconds is * hard-coded, but may be useful to projects and modules. This will replace * the hard-coded value in a future release. */ public int $ttl = 60; /** * -------------------------------------------------------------------------- * Reserved Characters * -------------------------------------------------------------------------- * * A string of reserved characters that will not be allowed in keys or tags. * Strings that violate this restriction will cause handlers to throw. * Default: {}()/\@: * * NOTE: The default set is required for PSR-6 compliance. */ public string $reservedCharacters = '{}()/\@:'; /** * -------------------------------------------------------------------------- * File settings * -------------------------------------------------------------------------- * Your file storage preferences can be specified below, if you are using * the File driver. * * @var array */ public array $file = [ 'storePath' => WRITEPATH . 'cache/', 'mode' => 0640, ]; /** * ------------------------------------------------------------------------- * Memcached settings * ------------------------------------------------------------------------- * Your Memcached servers can be specified below, if you are using * the Memcached drivers. * * @see https://codeigniter.com/user_guide/libraries/caching.html#memcached * * @var array */ public array $memcached = [ 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 1, 'raw' => false, ]; /** * ------------------------------------------------------------------------- * Redis settings * ------------------------------------------------------------------------- * Your Redis server can be specified below, if you are using * the Redis or Predis drivers. * * @var array */ public array $redis = [ 'host' => '127.0.0.1', 'password' => null, 'port' => 6379, 'timeout' => 0, 'database' => 0, ]; /** * -------------------------------------------------------------------------- * Available Cache Handlers * -------------------------------------------------------------------------- * * This is an array of cache engine alias' and class names. Only engines * that are listed here are allowed to be used. * * @var array> */ public array $validHandlers = [ 'dummy' => DummyHandler::class, 'file' => FileHandler::class, 'memcached' => MemcachedHandler::class, 'predis' => PredisHandler::class, 'redis' => RedisHandler::class, 'wincache' => WincacheHandler::class, ]; }