mirror of
https://github.com/blindlobstar/go-interview-problems
synced 2025-04-23 02:05:14 +00:00
25 lines
331 B
Go
25 lines
331 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type TtlCache struct{}
|
|
|
|
func NewTtlCache() *TtlCache {
|
|
return &TtlCache{}
|
|
}
|
|
|
|
func (c *TtlCache) Set(key string, value string, ttl time.Duration) {
|
|
}
|
|
|
|
func (c *TtlCache) Get(key string) (string, bool) {
|
|
return "", false
|
|
}
|
|
|
|
func (c *TtlCache) Delete(key string) {
|
|
}
|
|
|
|
func (c *TtlCache) Stop() {
|
|
}
|