@@ -148,9 +148,9 @@ |
||
148 | 148 | * Reset the Item |
149 | 149 | */ |
150 | 150 | $item->set(null) |
151 | - ->expiresAfter(abs((int) $this->getConfig()[ 'defaultTtl' ])) |
|
152 | - ->setHit(false) |
|
153 | - ->setTags([]); |
|
151 | + ->expiresAfter(abs((int) $this->getConfig()[ 'defaultTtl' ])) |
|
152 | + ->setHit(false) |
|
153 | + ->setTags([]); |
|
154 | 154 | if($this->config['itemDetailedDate']){ |
155 | 155 | |
156 | 156 | /** |
@@ -62,95 +62,95 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Specify if the item must provide detailed creation/modification dates |
64 | 64 | */ |
65 | - 'itemDetailedDate' => false, |
|
65 | + 'itemDetailedDate' => false, |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Automatically attempt to fallback to temporary directory |
69 | 69 | * if the cache fails to write on the specified directory |
70 | 70 | */ |
71 | - 'autoTmpFallback' => false, |
|
71 | + 'autoTmpFallback' => false, |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Provide a secure file manipulation mechanism |
75 | 75 | * on intensive usage the performance can be affected. |
76 | 76 | */ |
77 | - 'secureFileManipulation' => false, |
|
77 | + 'secureFileManipulation' => false, |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Ignore Symfony notice for Symfony project which |
81 | 81 | * do not makes use of PhpFastCache's Symfony Bundle |
82 | 82 | */ |
83 | - 'ignoreSymfonyNotice' => false, |
|
83 | + 'ignoreSymfonyNotice' => false, |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Default time-to-live in second |
87 | 87 | */ |
88 | - 'defaultTtl' => 900, |
|
88 | + 'defaultTtl' => 900, |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Default key hash function |
92 | 92 | * (md5 by default) |
93 | 93 | */ |
94 | - 'defaultKeyHashFunction' => '', |
|
94 | + 'defaultKeyHashFunction' => '', |
|
95 | 95 | |
96 | 96 | /** |
97 | 97 | * The securityKey that will be used |
98 | 98 | * to create sub-directory |
99 | 99 | * (Files-based drivers only) |
100 | 100 | */ |
101 | - 'securityKey' => 'auto', |
|
101 | + 'securityKey' => 'auto', |
|
102 | 102 | |
103 | 103 | /** |
104 | 104 | * Auto-generate .htaccess if it's missing |
105 | 105 | * (Files-based drivers only) |
106 | 106 | */ |
107 | - 'htaccess' => true, |
|
107 | + 'htaccess' => true, |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * Default files chmod |
111 | 111 | * 0777 recommended |
112 | 112 | * (Files-based drivers only) |
113 | 113 | */ |
114 | - 'default_chmod' => 0777, |
|
114 | + 'default_chmod' => 0777, |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * The path where we will writecache files |
118 | 118 | * default value if empty: sys_get_temp_dir() |
119 | 119 | * (Files-based drivers only) |
120 | 120 | */ |
121 | - 'path' => '', |
|
121 | + 'path' => '', |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Driver fallback in case of failure. |
125 | 125 | * Caution, in case of failure an E_WARNING |
126 | 126 | * error will always be raised |
127 | 127 | */ |
128 | - 'fallback' => false, |
|
128 | + 'fallback' => false, |
|
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Maximum size (bytes) of object store in memory |
132 | 132 | * (Memcache(d) drivers only) |
133 | 133 | */ |
134 | - 'limited_memory_each_object' => 4096, |
|
134 | + 'limited_memory_each_object' => 4096, |
|
135 | 135 | |
136 | 136 | /** |
137 | 137 | * Compress stored data, if the backend supports it |
138 | 138 | * (Memcache(d) drivers only) |
139 | 139 | */ |
140 | - 'compress_data' => false, |
|
140 | + 'compress_data' => false, |
|
141 | 141 | |
142 | 142 | /** |
143 | 143 | * Prevent cache slams when |
144 | 144 | * making use of heavy cache |
145 | 145 | * items |
146 | 146 | */ |
147 | - 'preventCacheSlams' => false, |
|
147 | + 'preventCacheSlams' => false, |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * Cache slams timeout |
151 | 151 | * in seconds |
152 | 152 | */ |
153 | - 'cacheSlamsTimeout' => 15, |
|
153 | + 'cacheSlamsTimeout' => 15, |
|
154 | 154 | |
155 | 155 | ]; |
156 | 156 | |
@@ -333,24 +333,24 @@ discard block |
||
333 | 333 | public static function getStaticSystemDrivers() |
334 | 334 | { |
335 | 335 | return [ |
336 | - 'Apc', |
|
337 | - 'Apcu', |
|
338 | - 'Cassandra', |
|
339 | - 'Couchbase', |
|
340 | - 'Couchdb', |
|
341 | - 'Devnull', |
|
342 | - 'Files', |
|
343 | - 'Leveldb', |
|
344 | - 'Memcache', |
|
345 | - 'Memcached', |
|
346 | - 'Memstatic', |
|
347 | - 'Mongodb', |
|
348 | - 'Predis', |
|
349 | - 'Redis', |
|
350 | - 'Ssdb', |
|
351 | - 'Sqlite', |
|
352 | - 'Wincache', |
|
353 | - 'Xcache', |
|
336 | + 'Apc', |
|
337 | + 'Apcu', |
|
338 | + 'Cassandra', |
|
339 | + 'Couchbase', |
|
340 | + 'Couchdb', |
|
341 | + 'Devnull', |
|
342 | + 'Files', |
|
343 | + 'Leveldb', |
|
344 | + 'Memcache', |
|
345 | + 'Memcached', |
|
346 | + 'Memstatic', |
|
347 | + 'Mongodb', |
|
348 | + 'Predis', |
|
349 | + 'Redis', |
|
350 | + 'Ssdb', |
|
351 | + 'Sqlite', |
|
352 | + 'Wincache', |
|
353 | + 'Xcache', |
|
354 | 354 | ]; |
355 | 355 | } |
356 | 356 | |
@@ -360,9 +360,9 @@ discard block |
||
360 | 360 | public static function getStaticAllDrivers() |
361 | 361 | { |
362 | 362 | return array_merge(self::getStaticSystemDrivers(), [ |
363 | - 'Devtrue', |
|
364 | - 'Devfalse', |
|
365 | - 'Cookie', |
|
363 | + 'Devtrue', |
|
364 | + 'Devfalse', |
|
365 | + 'Cookie', |
|
366 | 366 | ]); |
367 | 367 | } |
368 | 368 |