Technology Redis
Redis (Remote Dictionary Server) is an exciting project, but, unfortunately, little has been written about it in Russian language sources. Therefore, the source for this paper is translated from the English language articles on the subject. Redis (Remote Dictionary Server) – this sisetma control key-value databases (key-value database). It can be used as cache (Memcached) together with traditional ryalitsionnoy database, or on their own. Redis very similar to memcachedb, although in contrast, gives you the ability to identify the keys that more than just a line (as well as the opportunity to work with multiple databases).
Despite the fact that this technology is still very young, the project already has client libraries in several programming languages such as Ruby, Python, PHP, Erlang, Tcl, Perl, LUA, Java, Erlang, and others. Consider new technology of high-performance and scalable databases, which is a relatively new but already occupied an important niche in the field of client-server applications. Redis will be of interest to developers in connection with the addition of two features: the sets, lists, atomic operations. Redis built in Asynchronous Master-Slave replication, but it can not share data between nodes. But while these tools does not exist yet. To achieve maximum performance Redis tries to make maximum use of RAM asynchronously capturing changes on the hard drives with optional compression LZF. Redis fairly easily compile and install on your machine from source. For prstyh binary values can be applied as follows: 1) Keep the change, and 2) Save the previous values 3) The addition and subtraction of numbers 4) Removal of 5) Generetsaya random key 6) Rename the key 7) Set the lifetime of writing database objects can be stored as lists, which are subject to the following atomic operations: 1) Add items to the end of the list 2) Add an item to the top of the list 3) Get a list of length 4) Preparation of the list 5) Remove the list 6) Removing the element 7) Update the list item Redis also supports the ‘set’.
Entries may be represented by s yide sets. You can extract multiple members, and create a new report containing the results of the sample. Fans interested in the following SQL operations that are applied to the dataset: 1) Adding an element to set 2) Delete an item from the set of 3) Get the intersection of the sets as a list of key 4) Get the intersection of the sets in a list of keys and store the result as a list 5) Getting the number of members of the set 6) Check the key belongs to the members of the set In addition, sets and lists can be sorted in ascending or descending alphabetical order. Another nice feature Redis is that it supports namespace. Keys can easily be moved from one namespace to another. In addition, all of the names can be dropped into a single namespace, and thus expedite the work. This is a very convenient way instantly get all the related keys.