File size: 412 Bytes
ef987bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package lru

import "time"

type Cache struct{}

func NewCache(capacity int) *Cache {
    return &Cache{}
}

func (c *Cache) Set(key string, value string) {}

func (c *Cache) SetWithTTL(key string, value string, ttl time.Duration) {}

func (c *Cache) Get(key string) (string, bool) {
    return "", false
}

func (c *Cache) GetAndRenewTTL(key string) (string, bool) {
    return "", false
}