Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultEvery means the clock time of recycling the expired cache items in memory. DefaultEvery = 60 // 1 minute )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
in memory store it contains a RW locker for safe map storage.
func NewMemoryStore ¶
func NewMemoryStore(gcInterval time.Duration, serializer cache.Serializer) *Cache
Click to show internal directories.
Click to hide internal directories.