channelCache.getDate¶
Signature: channelCache.getDate(key, defaultValue*)
Returns: Date dateValue - the value associated with the Date-typed key
Get the Date-typed value associated with the key.
Note
A ClassCastException will be thrown if the cache is not of type Date.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| String | key | a unique string used to identify the cached value | |
| Date | defaultValue* | (optional) the value to return if no value is associated with the key |
null |