qbw2008
qbw2008

Reputation: 71

redis key-value what the limitation of key?

set "as";b 1 is error 
key:  "as";b
value:   1

what is the naming rule of key?

Redis uses SDS to implement string. Book says SDS can contain any construction of string

Upvotes: 7

Views: 16230

Answers (2)

NappingRabbit
NappingRabbit

Reputation: 1918

Anything goes... up to 512MB

http://redis.io/topics/data-types-intro#redis-keys

other discussion on Redis key naming conventions

Redis key naming conventions?

Upvotes: 7

Itamar Haber
Itamar Haber

Reputation: 49962

A Redis key name can be any string as long as it is under 512MB. Other than that, there are no rules.

Upvotes: 21

Related Questions