Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
This trick ensures that the eviction goroutine (which--granted it was enabled--is running DeleteExpired on c forever) does not keep the returned C object from being garbage collected. When it is garbage collected, the finalizer stops the eviction goroutine, after which c can be collected. Please refer to https://github.com/patrickmn/go-cache
Click to show internal directories.
Click to hide internal directories.