OnExpiredSync will be called inside the same transaction that is performing
the deletion of expired items. If OnExpired is present then this callback
will not be called. If this callback is present, then the deletion of the
timeed-out item is the explicit responsibility of this callback.
Optional boolean parameter ignoreExpired added to *Tx.Get(key string, ignoreExpired ...bool) to see the item even if it's expired. It does not break the API. This option is useful in sliding timeout scenarios.
Get returns a value for a key. If the item does not exist or if the item
has expired then ErrNotFound is returned. If ignoreExpired is true, then
the found value will be returned even if it is expired.
OnExpiredSync
callback is added toConfig
- #32 .Optional boolean parameter
ignoreExpired
added to*Tx.Get(key string, ignoreExpired ...bool)
to see the item even if it's expired. It does not break the API. This option is useful in sliding timeout scenarios.