new Cacheable()
Abstract class for defining cacheable behavior.
Members
-
<protected, non-null> cache :Object
-
Holds the cached data.
Type:
- Object
- Default Value:
-
- null
-
<protected> cacheable :boolean
-
Holds whether class is cacheable.
Type:
- boolean
- Default Value:
-
- false
Methods
-
addCache(content)
-
Adds content to the cache.
Parameters:
Name Type Description content
string Content to be cached. -
clearCache()
-
Clears the cache.
-
disposeInternal()
-
Disposes of this instance's object references.
-
<protected> getCache()
-
Gets the cached content.
Returns:
Cached content.- Type
- Object
-
isCacheable()
-
Whether the class is cacheable.
Returns:
Returns true when class is cacheable, false otherwise.- Type
- boolean
-
setCacheable(cacheable)
-
Sets whether the class is cacheable.
Parameters:
Name Type Description cacheable
boolean