Download task_014/environment/code/lru.go from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_014/environment/code/lru.go
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_014/environment/code/lru.go
-
curl -L -o lru.go https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_014/environment/code/lru.go
412 Bytes
| 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 | |
| } | |