1386. Class

1386.1. Zend\Cache\Pattern\ObjectCache

1386.1.1. Methods

1386.1.1.1. setOptions

setOptions()

Set options

Parameters:PatternOptions
Return type:void
Throws :ExceptionInvalidArgumentException

1386.1.1.2. call

call()

Call and cache a class method

Parameters:
  • string – Method name to call
  • array – Method arguments
Return type:

mixed

Throws :

ExceptionRuntimeException

Throws :

Exception

1386.1.1.3. generateKey

generateKey()

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

Parameters:
  • string – The method
  • array – Callback arguments
Return type:

string

Throws :

ExceptionRuntimeException

1386.1.1.4. generateCallbackKey

generateCallbackKey()

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

Parameters:
  • callable – A valid callback
  • array – Callback arguments
Return type:

string

Throws :

ExceptionRuntimeException

1386.1.1.5. __call

__call()

Class method call handler

Parameters:
  • string – Method name to call
  • array – Method arguments
Return type:

mixed

Throws :

ExceptionRuntimeException

Throws :

Exception

1386.1.1.6. __set

__set()

Writing data to properties.

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn’t exist in real. If so it calls __set and removes cached data of previous __get and __isset calls.

Parameters:
  • string
  • mixed
Return type:

void

See :

1386.1.1.7. __get

__get()

Reading data from properties.

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn’t exist in real. If so it calls __get.

Parameters:string
Return type:mixed
See :

1386.1.1.8. __isset

__isset()

Checking existing properties.

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn’t exist in real. If so it calls __get.

Parameters:string
Return type:bool
See :

1386.1.1.9. __unset

__unset()

Unseting a property.

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn’t exist in real. If so it removes previous cached __isset and __get calls.

Parameters:string
Return type:void
See :

1386.1.1.10. __toString

__toString()

Handle casting to string

Return type:string
See :

1386.1.1.11. __invoke

__invoke()

Handle invoke calls

Return type:mixed
See :