Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rm SetUnique

  • Loading branch information...
commit 8c6266bd79ad1858575968e311602b48958b7796 1 parent c71e970
Simon Zimmermann authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 schema/schema.go
View
10 schema/schema.go
@@ -121,16 +121,6 @@ func Get(db *redis.Client, k *Key, s interface{}) error {
return e
}
-func SetUnique(db *redis.Client, key string) (bool, error) {
- reply, e := db.Call("SETNX", key, 1)
-
- if e != nil {
- return false, e
- }
-
- return reply.Elem.Int() == 1, nil
-}
-
func setId(db *redis.Client, s interface{}, prep *prepare) error {
if prep.key.Id() != 0 {
return nil
Please sign in to comment.
Something went wrong with that request. Please try again.