You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const wirth = "But quality of work can be expected only through personal satisfaction, dedication and enjoyment. In our profession, precision and perfection are not a dispensible luxury, but a simple necessity."
data := []byte(wirth)
key := &Key{
Set: "testset",
Pk: "testExpired",
}
aerospikeCache.Put(data, key, time.Second)
cachedData, ok := aerospikeCache.Get(key)
if !ok {
panic("Something went wrong")
}
fmt.Println(string(cachedData))
// Output:
// But quality of work can be expected only through personal satisfaction, dedication and enjoyment. In our profession, precision and perfection are not a dispensible luxury, but a simple necessity.