1437. Class

1437.1. Zend\Cache\Storage\Plugin\PluginOptions

1437.1.1. Methods

1437.1.1.1. setClearingFactor

setClearingFactor()

Set automatic clearing factor

Used by: - ClearExpiredByFactor

Parameters:int
Return type:PluginOptions

1437.1.1.2. getClearingFactor

getClearingFactor()

Get automatic clearing factor

Used by: - ClearExpiredByFactor

Return type:int

1437.1.1.3. setExceptionCallback

setExceptionCallback()

Set callback to call on intercepted exception

Used by: - ExceptionHandler

Parameters:callable
Throws ExceptionInvalidArgumentException:
 
Return type:PluginOptions

1437.1.1.4. getExceptionCallback

getExceptionCallback()

Get callback to call on intercepted exception

Used by: - ExceptionHandler

Return type:null|callable

1437.1.1.5. setExitOnAbort

setExitOnAbort()

Exit if connection aborted and ignore_user_abort is disabled.

Parameters:bool
Return type:PluginOptions

1437.1.1.6. getExitOnAbort

getExitOnAbort()

Exit if connection aborted and ignore_user_abort is disabled.

Return type:bool

1437.1.1.7. setOptimizingFactor

setOptimizingFactor()

Set automatic optimizing factor

Used by: - OptimizeByFactor

Parameters:int
Return type:PluginOptions

1437.1.1.8. getOptimizingFactor

getOptimizingFactor()

Set automatic optimizing factor

Used by: - OptimizeByFactor

Return type:int

1437.1.1.9. setSerializer

setSerializer()

Set serializer

Used by: - Serializer

Parameters:string|SerializerAdapter
Throws ExceptionInvalidArgumentException:
 
Return type:Serializer

1437.1.1.10. getSerializer

getSerializer()

Get serializer

Used by: - Serializer

Return type:SerializerAdapter

1437.1.1.11. setSerializerOptions

setSerializerOptions()

Set configuration options for instantiating a serializer adapter

Used by: - Serializer

Parameters:mixed
Return type:PluginOptions

1437.1.1.12. getSerializerOptions

getSerializerOptions()

Get configuration options for instantiating a serializer adapter

Used by: - Serializer

Return type:array

1437.1.1.13. setThrowExceptions

setThrowExceptions()

Set flag indicating we should re-throw exceptions

Used by: - ExceptionHandler

Parameters:bool
Return type:PluginOptions

1437.1.1.14. getThrowExceptions

getThrowExceptions()

Should we re-throw exceptions?

Used by: - ExceptionHandler

Return type:bool

1437.1.1.15. normalizeFactor

normalizeFactor()

Normalize a factor

Cast to int and ensure we have a value greater than zero.

Parameters:int
Return type:int
Throws :ExceptionInvalidArgumentException