diff --git a/app/redis_cmds.go b/app/redis_cmds.go index 3d25229..e9a1f78 100644 --- a/app/redis_cmds.go +++ b/app/redis_cmds.go @@ -93,11 +93,7 @@ func redisCmdDel(app *App, conn redcon.Conn, args []string) error { return errors.New("wrong number of arguments for 'del' command") } - keys := make([]string, len(args)-1) - - for i, key := range args[1:] { - keys[i] = string(key) - } + keys := args[1:] if err := app.cassandraDel(keys...); err != nil { return fmt.Errorf("cassandra query: %w", err) @@ -157,10 +153,7 @@ func redisCmdExists(app *App, conn redcon.Conn, args []string) error { return errors.New("wrong number of arguments for 'exists' command") } - keys := make([]string, len(args)-1) - for i, key := range args[1:] { - keys[i] = string(key) - } + keys := args[1:] count, err := app.cassandraExists(keys...) if err != nil { diff --git a/readme.md b/readme.md index f87a2d0..503e74b 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This is a simple proxy that allows you to use Cassandra as a cache for Redis. ## Cassandra -Requires a cassandra version 3.0 or higher. Also tested with YugabyteDB with the cassandra compatibility layer. +Requires a cassandra version 3.0 or higher. ### Schema