Alexey Kim 1 년 전
부모
커밋
45b618fbb7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cache/ttl_cache.go

+ 1 - 1
cache/ttl_cache.go

@@ -10,7 +10,7 @@ type ttlCache struct {
 	buf *expirable.LRU[string, []byte]
 }
 
-func New(size int, ttl time.Duration) Cache {
+func NewTTLCache(size int, ttl time.Duration) Cache {
 	c := &ttlCache{}
 	c.buf = expirable.NewLRU[string, []byte](size, nil, ttl)
 	return c