Merge branch 'upstream-mirror' into sync-updates

# Conflicts:
#	layeredcache_test.go
This commit is contained in:
Eli Bishop
2021-03-18 20:27:43 -07:00
8 changed files with 31 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ func Test_Cache(t *testing.T) {
func (_ CacheTests) DeletesAValue() {
cache := New(Configure())
defer cache.Stop()
Expect(cache.ItemCount()).To.Equal(0)
cache.Set("spice", "flow", time.Minute)
@@ -32,6 +33,7 @@ func (_ CacheTests) DeletesAValue() {
func (_ CacheTests) DeletesAPrefix() {
cache := New(Configure())
defer cache.Stop()
Expect(cache.ItemCount()).To.Equal(0)
cache.Set("aaa", "1", time.Minute)
@@ -55,6 +57,7 @@ func (_ CacheTests) DeletesAPrefix() {
func (_ CacheTests) DeletesAFunc() {
cache := New(Configure())
defer cache.Stop()
Expect(cache.ItemCount()).To.Equal(0)
cache.Set("a", 1, time.Minute)