If I understand correctly, because groupcache doesn't allow modify value 
(except it deleted by LRU???), I need to add time bucket to the key?

```
func timeBucket(t time.Time) string {
    return t.Format("2006_01_02_15_04")
}

func userCacheKey(id string, t time.Time) string {
   return id + timeBucket(t)
}
```

Do I understand thing correctly?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e98fad9f-37c2-46cf-b115-3555829b2991n%40googlegroups.com.

Reply via email to