You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/OPTIONS.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
PhpFastCache has some options that you may want to know before using them, here's the list:
2
2
3
3
### File-based drivers options *
4
+
***path** See the "**Host/Authenticating options**" section
4
5
***default_chmod**_| int>octal (default: 0777)_`[>=V4]` This option will define the chmod used to write driver cache files.
5
6
***securityKey**_| string (default: 'auto')_`[>=V4]` A security key that define the subdirectory name. 'auto' value will be the HTTP_HOST value.
6
-
***path**_| string (default: Tmp directory)_`[>=V4]` The absolute path where the written cache files belong to.
7
7
***htaccess**_| bool (default: true)_`[>=V4]` Option designed to (dis)allow the auto-generation of .htaccess.
8
8
***autoTmpFallback**_| bool (default: false)_`[>=V6]`Option designed to automatically attempt to fallback to temporary directory if the cache fails to write on the specified directory
9
9
***secureFileManipulation**_| bool (default: false)_`[>=V6]` This option enforces a strict I/O manipulation policy by adding more integrity checks. This option may slow down the write operations, therefore you must use it with caution. In case of failure an **phpFastCacheIOException** exception will be thrown. Currently only supported by _Files_ driver.
@@ -22,11 +22,13 @@ PhpFastCache has some options that you may want to know before using them, here'
22
22
***cacheSlamsTimeout**_| int (default: 15)_`[>=V6]` This option defines the cache slams timeout in seconds
23
23
24
24
### Host/Authenticating options *
25
-
***host**_| string (default: not set)_ The host
25
+
***host**_| string (default: not set)_ The hostname
26
+
***path**_| string (default: not set)_`[>=V4], [>=V6.1]` The absolute path where the written cache files belong to (system temp directory by default). **As of the V6.1** this option is also used to define (P)redis and Memcache(d) UNIX socket
26
27
***port**_| int (default: not set)_ The port
27
28
***username**_| string (default: not set)_ The username
28
29
***password**_| string (default: not set)_ The password
29
30
***timeout**_| int (default: not set)_ The timeout (in seconds)
31
+
***servers**_| array (default: not set)_ Array of servers. Exclusive to Memcache(d)
30
32
31
33
These options differs depending the driver that you are using, see **/Examples** folder for more information about these options.
0 commit comments