Podrška #18234
Zatvoren
- Naslov promijenjeno iz redis u redis key-value database
Redis 0.900 (1.0 release candidate 1) released! this is a major new release See the Changelog to get more information. This is exactly what you'll get with Redis 1.0 stable. Please try to stress test this and report any bug!
Redis is a key-value database. It is similar to memcached but the dataset is not volatile, and values can be strings, exactly like in memcached, but also lists and sets with atomic operations to push/pop elements.
In order to be very fast but at the same time persistent the whole dataset is taken in memory and from time to time and/or when a number of changes to the dataset are performed it is written asynchronously on disk. You may lost the last few queries that is acceptable in many applications but it is as fast as an in memory DB (Redis supports non-blocking master-slave replication in order to solve this problem by redundancy).
Compression and other interesting features are a work in progress. Redis is written in ANSI C and works in most POSIX systems like Linux, *BSD, Mac OS X, and so on. Redis is free software released under the very liberal BSD license.
Supported languages
- Ruby main repository written by Ezra Zygmuntowicz (aka ezmobius)
- Python main repository written by Ludovico Magnocavallo (aka ludo)
- PHP main repository written by Ludovico Magnocavallo (aka ludo)
- PHP client lib written in C, as a PHP module! http://code.google.com/p/phpredis/ thanks to Alfonso Jimenez.
- Erlang main repository written by Valentino Volonghi of Adroll
- Tcl (the official version is included in the Redis tarball since it's maintained by myself, now you can find it in the Git repository).
- Perl bindings for Redis are available in this SVN repository thanks to Dobrica Pavlinusic.
- Lua bindings for Redis are available in this git repository (and as well as in the Redis git) thanks to Daniele Alessandri.
- Java has two client libraries projects: JDBC-Redis that as you can guess from the name is a client implementing the JDBC API, and JRedis that is JCA compliant. Both libs are actively developed and good quality, I suggest you to check both. Also note that JRedis plans to release support for asynchronous communication between the client and Redis.
Unlike memcached, redis can save its state to disk so that you can shut down a server without losing all the data. For performance reasons, redis doesn’t log every change to disk as it happens (then it’d be a lot more like a database). Instead, it can be configured to save a copy of the database to disk after a certain amount of time has passed or a certain threshold of changes have occurred in the data.
- Status promijenjeno iz Dodijeljeno u Zatvoreno
Također dostupno kao Atom
PDF