Data types – Redis

Commands Clients Documentation Community Download Issues Support License Strings are the most basic kind of Redis value. Redis Strings are binary safe, this means that a Redis string can contain any kind of data, for instance a JPEG image or a serialized Ruby object. A String value can be at max 512 Megabytes in length. You can do a number of interesting things using strings in Redis, for instance you can: Use Strings as atomic counters using commands in the INCR family: INCR , DECR , INCRBY . Append to strings with the APPEND command. Use Strings as a random access vectors with GETRANGE and SETRANGE . Encode a lot of data in little space, or create a Redis backed Bloom Filter using GETBIT and SETBIT . Check all the available string commands for more information. Redis Lists are simply lists of strings, sorted by insertion order. It is pos...

Linked on 2014-03-04 06:29:22 | Similar Links