From ddb1f4ab86d2a3ba4fe2323e7790d418bfc6a9b1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 5 Nov 2023 19:56:18 -0300 Subject: [PATCH] fix nocache. --- null_cache.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/null_cache.go b/null_cache.go index 1fe9c6b..f06fc14 100644 --- a/null_cache.go +++ b/null_cache.go @@ -21,5 +21,6 @@ func (c *Cache) SetJSON(key string, value any) {} func (c *Cache) SetWithTTL(key string, value []byte, ttl time.Duration) {} func (c *Cache) SetJSONWithTTL(key string, value any, ttl time.Duration) {} func (c *Cache) GetPaginatedKeys(prefix string, page int, size int) []string { return []string{} } +func (c *Cache) Delete(key string) {} -var db eventstore.Store = nullstore.NullStore{} +var db eventstore.Store = &nullstore.NullStore{}