|
|
@ -25,7 +25,7 @@ func (item *Item) Expired() bool {
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
// For use with functions that take an expiration time.
|
|
|
|
// For use with functions that take an expiration time.
|
|
|
|
NoExpiration time.Duration = -1
|
|
|
|
NoExpiration time.Duration = -1
|
|
|
|
// For use with functions that take an expiration time. Equivalent to
|
|
|
|
// For use with functions that take an expiration time. Equivalent to
|
|
|
|
// passing in the same expiration duration as was given to New() or
|
|
|
|
// passing in the same expiration duration as was given to New() or
|
|
|
|
// NewFrom() when the cache was created (e.g. 5 minutes.)
|
|
|
|
// NewFrom() when the cache was created (e.g. 5 minutes.)
|
|
|
|