buildKey(key)
Builds a key.
Arguments
key
(string): String to build a key of.
Lifecycle
preBuildKey
Event name:
preBuiltKey
Properties passed:cacheInstance
reference to cache instance (this
)key
key passed tobuildKey
method
Returns: (object): object containing properties:
cacheInstance
reference to cache instance (this
)key
key passed through handlers added forpreBuildKey
event
postBuildKey
Event name:
postBuiltKey
Properties passed:cacheInstance
reference to cache instance (this
) returned bypreBuildKey
key
key built by adapter using its buildKey method
Returns: (object): object containing properties:
cacheInstance
reference to cache instance (this
)key
key passed through handlers added forpostBuildKey
event
Eventually
buildKey
returns key returned bypostBuildKey
.
Returns
(string): Built key. Depends on adapter being used.
Example
Last updated