Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go defaults to "0"" so in case we want to return #181

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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