Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
disables TLRU cache algorithm until scheduler is implemented (affects #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Fylling committed Oct 29, 2018
1 parent 195320b commit a19a09a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/andersfylling/disgord/cache/interfaces"
"github.com/andersfylling/disgord/cache/lfu"
"github.com/andersfylling/disgord/cache/lru"
"github.com/andersfylling/disgord/cache/tlru"
)

// cache keys to redirect to the related cache system
Expand Down Expand Up @@ -65,7 +64,8 @@ func (e *ErrorUsingDeactivatedCache) Error() string {
func constructSpecificCacher(alg string, limit uint, lifetime time.Duration) (cacher interfaces.CacheAlger, err error) {
switch alg {
case CacheAlgTLRU:
cacher = tlru.NewCacheList(limit, lifetime)
//cacher = tlru.NewCacheList(limit, lifetime)
err = errors.New("TLRU is missing schedulerer for clearing dead/timed out objects and is therefore deactivated")
case CacheAlgLRU:
cacher = lru.NewCacheList(limit)
case CacheAlgLFU:
Expand Down

0 comments on commit a19a09a

Please sign in to comment.