All pages
Powered by GitBook
1 of 1

CacheGetAsAttempt

Get an item from the cache and return it as a Java {@link Optional}.

By default, the {@code cacheName} is set to {@code default}.

Method Signature

CacheGetAsAttempt(id=[string], cacheName=[string])

Arguments

Argument
Type
Required
Description
Default

id

string

true

The cache id to retrieve

cacheName

string

false

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

default

Examples

Related

  • CacheCount

  • CacheRegionRemove

  • CacheRemoveAll

  • CachePut

  • CacheRegionExists

  • CacheGetSession

  • CacheGetEngineProperties

  • CacheGet

  • CacheGetDefaultCacheName

  • CacheGetProperties

  • CacheSetProperties

  • CacheGetAllIds

  • CacheIdExists

  • cacheKeyExists

  • CacheRemove

  • cacheDelete

  • CacheGetAll

  • CacheGetMetadata

  • CacheGetOrFail

  • CacheClear

  • CacheRegionNew