CacheGet

Get an item from the cache.

If the item is not found, the default value will be returned if provided, else null will be returned. By default, the {@code cacheName} is set to {@code default}.

Method Signature

CacheGet(id=[any], cacheName=[any], throwWhenNotExist=[any])

Arguments

Argument
Type
Required
Description
Default

id

any

true

The cache id to retrieve, or an array of ids to retrieve

cacheName

any

false

The cache name to retrieve the id from, defaults to {@code default}

default

throwWhenNotExist

any

false

false

Examples

Last updated

Was this helpful?