Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go/cacheservice/cacheservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ type CacheService interface {
// for using with CAS. Gets returns a CAS identifier with the item. If
// the item's CAS value has changed since you Gets'ed it, it will not be stored.
Gets(keys ...string) (results []Result, err error)
// Set set the value with specified cache key.
// Set sets the value with specified cache key.
Set(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
// Add store the value only if it does not already exist.
// Add stores the value only if it does not already exist.
Add(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
// Replace replaces the value, only if the value already exists,
// for the specified cache key.
Expand All @@ -69,7 +69,7 @@ type CacheService interface {
Prepend(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error)
// Cas stores the value only if no one else has updated the data since you read it last.
Cas(key string, flags uint16, timeout uint64, value []byte, cas uint64) (stored bool, err error)
// Delete delete the value for the specified cache key.
// Delete deletes the value for the specified cache key.
Delete(key string) (deleted bool, err error)
// FlushAll purges the entire cache.
FlushAll() (err error)
Expand Down
6 changes: 3 additions & 3 deletions go/memcache/memcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ func (mc *Connection) Gets(keys ...string) (results []cacheservice.Result, err e
return
}

// Set set the value with specified cache key.
// Set sets the value with specified cache key.
func (mc *Connection) Set(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error) {
defer handleError(&err)
return mc.store("set", key, flags, timeout, value, 0), nil
}

// Add store the value only if it does not already exist.
// Add stores the value only if it does not already exist.
func (mc *Connection) Add(key string, flags uint16, timeout uint64, value []byte) (stored bool, err error) {
defer handleError(&err)
return mc.store("add", key, flags, timeout, value, 0), nil
Expand Down Expand Up @@ -117,7 +117,7 @@ func (mc *Connection) Cas(key string, flags uint16, timeout uint64, value []byte
return mc.store("cas", key, flags, timeout, value, cas), nil
}

// Delete delete the value for the specified cache key.
// Delete deletes the value for the specified cache key.
func (mc *Connection) Delete(key string) (deleted bool, err error) {
defer handleError(&err)
mc.setDeadline()
Expand Down