*/ public array $file = [ 'storePath' => WRITEPATH . 'file/', '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 | */ 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. | */ 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. | */ public array $validHandlers = [ 'dummy' => DummyHandler::class, 'file' => FileHandler::class, 'memcached' => MemcachedHandler::class, 'predis' => PredisHandler::class, 'redis' => RedisHandler::class, 'wincache' => WincacheHandler::class, ]; public function __construct() { parent::__construct(); if (is_file(CONFIGPATH.'redis.php')) { $this->redis = require CONFIGPATH.'redis.php'; } elseif (is_file(ROOTPATH.'config/redis.php')) { $this->redis = require ROOTPATH.'config/redis.php'; } if (is_file(CONFIGPATH.'memcached.php')) { $this->memcached = require CONFIGPATH.'memcached.php'; } elseif (is_file(ROOTPATH.'config/memcached.php')) { $this->memcached = require ROOTPATH.'config/memcached.php'; } $this->prefix = substr(SYS_KEY, 0, 10).'-'; } }