goog.storage.CollectableStorage
Classgoog.storage.CollectableStorage
> goog.storage.ExpiringStorage
> goog.storage.RichStorage
> goog.storage.Storage
goog.storage.CollectableStorage(mechanism)
Provides a storage with expirning keys and a collection method.
mechanism
{!goog.storage.mechanism.IterableMechanism
}
.collect(opt_strict)
Cleans up the storage by removing expired keys.
opt_strict
{boolean
=}
.get(key)
Inherited from goog.storage.RichStorage
.
Get an item from the data storage.
key
{string
}
.getWrapper(key, opt_expired)
Inherited from goog.storage.ExpiringStorage
.
Get an item wrapper (the item and its metadata) from the storage.
key
{string
}
opt_expired
{boolean
=}
Object
|undefined
)}
.mechanism
[protected] {goog.storage.mechanism.Mechanism
}Inherited from goog.storage.Storage
.
The mechanism used to persist key-value pairs.
.remove(key)
Inherited from goog.storage.Storage
.
Remove an item from the data storage.
key
{string
}
.set(key, value, opt_expiration)
Inherited from goog.storage.ExpiringStorage
.
Set an item in the storage.
key
{string
}
value
{*}
opt_expiration
{number
=}