Package org.casbin.jcasbin.persist.cache
Class CacheItem
- java.lang.Object
-
- org.casbin.jcasbin.persist.cache.CacheItem
-
public class CacheItem extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getValue()
Retrieves the cached value.boolean
isExpired()
Checks whether the cache item has expired based on the current time and its ttl.
-
-
-
Method Detail
-
isExpired
public boolean isExpired()
Checks whether the cache item has expired based on the current time and its ttl.- Returns:
- True if the cache item is expired, false otherwise.
-
getValue
public boolean getValue()
Retrieves the cached value.- Returns:
- The boolean value stored in this cache item.
-
-