From d23463dadf8d33fc1dac020650f7144b2262fe8b Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Thu, 27 Jul 2023 18:21:52 +0200 Subject: [PATCH] Add GetPaginatedkeys for null_cache --- null_cache.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/null_cache.go b/null_cache.go index d53f27f..bd6e2a2 100644 --- a/null_cache.go +++ b/null_cache.go @@ -10,10 +10,11 @@ var cache = Cache{} type Cache struct{} -func (c *Cache) initialize() func() { return func() {} } -func (c *Cache) Get(key string) ([]byte, bool) { return nil, false } -func (c *Cache) GetJSON(key string, recv any) bool { return false } -func (c *Cache) Set(key string, value []byte) {} -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) initialize() func() { return func() {} } +func (c *Cache) Get(key string) ([]byte, bool) { return nil, false } +func (c *Cache) GetJSON(key string, recv any) bool { return false } +func (c *Cache) Set(key string, value []byte) {} +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{} }