This commit is contained in:
Patrick Mylund Nielsen 2012-01-02 17:26:17 +01:00
parent 8f430150d6
commit c84223dab4
2 changed files with 5 additions and 5 deletions

View File

@ -288,10 +288,10 @@ func stopJanitor(c *Cache) {
}
// Returns a new cache with a given default expiration duration and default cleanup
// interval. If the expiration duration is less than 1, the items in the cache never expire
// and have to be deleted manually. If the cleanup interval is less than one, expired
// items are not deleted from the cache before their next lookup or before calling
// DeleteExpired.
// interval. If the expiration duration is less than 1, the items in the cache never
// expire and must be deleted manually. If the cleanup interval is less than one,
// expired items are not deleted from the cache before their next lookup or before
// calling DeleteExpired.
func New(de, ci time.Duration) *Cache {
if de == 0 {
de = -1

View File

@ -339,7 +339,7 @@ func TestDecrementInt64(t *testing.T) {
tc.Set("int64", int64(5), 0)
err := tc.Decrement("int64", 2)
if err != nil {
t.Error("Error incrementing:", err)
t.Error("Error decrementing:", err)
}
x, found := tc.Get("int64")
if !found {