Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bigcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ type Response struct {
type RemoveReason uint32

const (
_ RemoveReason = iota
// Expired means the key is past its LifeWindow.
Expired = RemoveReason(1)
Expired
// NoSpace means the key is the oldest and the cache size was at its maximum when Set was called, or the
// entry exceeded the maximum shard size.
NoSpace = RemoveReason(2)
NoSpace
// Deleted means Delete was called and this key was removed as a result.
Deleted = RemoveReason(3)
Deleted
)

// NewBigCache initialize new instance of BigCache
Expand Down