Set puts key and value into cache. First parameter for extra should be time.Time object denoting expected survival time. If survival time equals 0 or less, the key will always be survival.
(key string, value bool, extra ...interface{})
| 23 | // First parameter for extra should be time.Time object denoting expected survival time. |
| 24 | // If survival time equals 0 or less, the key will always be survival. |
| 25 | Set(key string, value bool, extra ...interface{}) error |
| 26 | |
| 27 | // Get returns result for key, |
| 28 | // If there's no such key existing in cache, |
no outgoing calls