@@ -34,37 +34,6 @@ class Cache extends BaseConfig
3434 */
3535 public string $ backupHandler = 'dummy ' ;
3636
37- /**
38- * --------------------------------------------------------------------------
39- * Cache Directory Path
40- * --------------------------------------------------------------------------
41- *
42- * The path to where cache files should be stored, if using a file-based
43- * system.
44- *
45- * @deprecated Use the driver-specific variant under $file
46- */
47- public string $ storePath = WRITEPATH . 'cache/ ' ;
48-
49- /**
50- * --------------------------------------------------------------------------
51- * Cache Include Query String
52- * --------------------------------------------------------------------------
53- *
54- * Whether to take the URL query string into consideration when generating
55- * output cache files. Valid options are:
56- *
57- * false = Disabled
58- * true = Enabled, take all query parameters into account.
59- * Please be aware that this may result in numerous cache
60- * files generated for the same page over and over again.
61- * ['q'] = Enabled, but only take into account the specified list
62- * of query parameters.
63- *
64- * @var bool|list<string>
65- */
66- public $ cacheQueryString = false ;
67-
6837 /**
6938 * --------------------------------------------------------------------------
7039 * Key Prefix
@@ -105,10 +74,11 @@ class Cache extends BaseConfig
10574 * --------------------------------------------------------------------------
10675 * File settings
10776 * --------------------------------------------------------------------------
77+ *
10878 * Your file storage preferences can be specified below, if you are using
10979 * the File driver.
11080 *
111- * @var array< string, int|string|null>
81+ * @var array{storePath?: string, mode?: int}
11282 */
11383 public array $ file = [
11484 'storePath ' => WRITEPATH . 'cache/ ' ,
@@ -119,12 +89,13 @@ class Cache extends BaseConfig
11989 * -------------------------------------------------------------------------
12090 * Memcached settings
12191 * -------------------------------------------------------------------------
92+ *
12293 * Your Memcached servers can be specified below, if you are using
12394 * the Memcached drivers.
12495 *
12596 * @see https://codeigniter.com/user_guide/libraries/caching.html#memcached
12697 *
127- * @var array< string, bool| int|string>
98+ * @var array{host?: string, port?: int, weight?: int, raw?: bool}
12899 */
129100 public array $ memcached = [
130101 'host ' => '127.0.0.1 ' ,
@@ -137,10 +108,11 @@ class Cache extends BaseConfig
137108 * -------------------------------------------------------------------------
138109 * Redis settings
139110 * -------------------------------------------------------------------------
111+ *
140112 * Your Redis server can be specified below, if you are using
141113 * the Redis or Predis drivers.
142114 *
143- * @var array< string, int| string|null>
115+ * @var array{host?: string, password?: string|null, port?: int, timeout?: int, database?: int}
144116 */
145117 public array $ redis = [
146118 'host ' => '127.0.0.1 ' ,
@@ -158,8 +130,7 @@ class Cache extends BaseConfig
158130 * This is an array of cache engine alias' and class names. Only engines
159131 * that are listed here are allowed to be used.
160132 *
161- * @var array<string, string>
162- * @phpstan-var array<string, class-string<CacheInterface>>
133+ * @var array<string, class-string<CacheInterface>>
163134 */
164135 public array $ validHandlers = [
165136 'dummy ' => DummyHandler::class,
@@ -169,4 +140,23 @@ class Cache extends BaseConfig
169140 'redis ' => RedisHandler::class,
170141 'wincache ' => WincacheHandler::class,
171142 ];
143+
144+ /**
145+ * --------------------------------------------------------------------------
146+ * Web Page Caching: Cache Include Query String
147+ * --------------------------------------------------------------------------
148+ *
149+ * Whether to take the URL query string into consideration when generating
150+ * output cache files. Valid options are:
151+ *
152+ * false = Disabled
153+ * true = Enabled, take all query parameters into account.
154+ * Please be aware that this may result in numerous cache
155+ * files generated for the same page over and over again.
156+ * ['q'] = Enabled, but only take into account the specified list
157+ * of query parameters.
158+ *
159+ * @var bool|list<string>
160+ */
161+ public $ cacheQueryString = false ;
172162}
0 commit comments