Difference between revisions of "Redis"

From wikieduonline
Jump to navigation Jump to search
 
(45 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[wikipedia:Redis|Redis]] is an open-source [[in-memory database]] project implementing a distributed, in-memory [[key-value]] store with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, hyperloglogs, bitmaps and spatial indexes.
+
[[wikipedia:Redis|Redis]] is an open-source [[in-memory database]] project released in May [[2009]] implementing a distributed, in-memory [[key-value]] store with optional durability. Redis supports different kinds of abstract data structures, such as <code>[[strings]], [[lists]], [[maps]], [[sets]], [[sorted sets]], [[hyperloglogs]], [[bitmaps]] and [[spatial indexes]]</code>.
  
Redis is also provided as a service in different Cloud providers [[ElastiCache]] from [[Amazon Web Services]] and [[Azure Cache]] from Microsoft Azure.
+
Redis is mostly [[single threaded]], or double-threaded when it rewrites the [[AOF]] log.<ref>http://antirez.com/news/111</ref>
 +
 
 +
Redis is also provided as a service in different Cloud providers such as [[ElastiCache]] from [[Amazon Web Services]], [[Azure Cache]] from Microsoft [[Azure]],  [[Alibaba Cloud]] offers [[ApsaraDB]] and [[Google Cloud Memorystore]].
 +
 
 +
* [[Redis installation|Installation]]:
 +
**<code>[[brew install redis]]</code>
 +
** <code>[[helm install redis]], [[helm install myredis bitnami/redis]]</code>
 +
* Configuration: <code>[[redis.conf]]</code>
 +
* [[Salvatore Sanfilippo]]
 +
 
 +
== Binaries ==
 +
* <code>[[redis-cli]]</code>
 +
* <code>[[redis-server]]</code>
 +
* <code>[[redis-benchmark]]</code>
 +
* <code>[[redis-check-aof]]</code>
 +
* <code>[[redis-check-rdb]]</code>
 +
* <code>[[redis-sentinel]]</code>
 +
* <code>[[rladmin]]</code>
  
 
== Basic commands ==
 
== Basic commands ==
Line 11: Line 28:
 
</pre>
 
</pre>
  
* Get a list of keys: <code>redis-cli --scan</code>
+
* Get a list of keys: <code>[[redis-cli --scan]]</code>
  
 
* Get redis information:  
 
* Get redis information:  
Line 18: Line 35:
 
$127.0.0.1:6379> info
 
$127.0.0.1:6379> info
 
</pre>
 
</pre>
 +
 +
 +
Windows:
 +
* <code>[[redis-server]] --service-install redis.windows-service.conf --loglevel verbose</code>
  
 
== Redis Enterprise ==
 
== Redis Enterprise ==
Line 27: Line 48:
  
 
== Activities ==
 
== Activities ==
* Read Redis release Notes https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES
+
* Read [[Redis changelog]] release Notes
 +
 
 +
== Related terms ==
 +
* [[Hazelcast]]
 +
* [[Sidekiq]] [[job scheduler]]
 +
* [[AWS ElastiCache]]
 +
* [[PHP sessions]]
 +
* [[Redis Cluster]]
 +
* [[SETEX]]
 +
* [[Amazon ElastiCache]]
 +
* [[OOM command not allowed when used memory ...]]
 +
* [[Transparent huge pages (THP)]]
  
 
== See also ==
 
== See also ==
 
* [[RedisInsight]], a GUI management client for Windows, Linux and Mac announced in November 2019
 
* [[RedisInsight]], a GUI management client for Windows, Linux and Mac announced in November 2019
 +
* {{Redis}}
 
* {{Key-value databases}}
 
* {{Key-value databases}}
  
Line 37: Line 70:
  
 
[[Category:Databases]]
 
[[Category:Databases]]
 +
[[Category:Redis]]
 +
[[Category:Key-value databases]]

Latest revision as of 10:53, 2 January 2024

Redis is an open-source in-memory database project released in May 2009 implementing a distributed, in-memory key-value store with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, hyperloglogs, bitmaps and spatial indexes.

Redis is mostly single threaded, or double-threaded when it rewrites the AOF log.[1]

Redis is also provided as a service in different Cloud providers such as ElastiCache from Amazon Web Services, Azure Cache from Microsoft Azure, Alibaba Cloud offers ApsaraDB and Google Cloud Memorystore.

Binaries[edit]

Basic commands[edit]

  • Connect to Redis database:
$ redis-cli
127.0.0.1:6379> ping
PONG
  • Get redis information:
redis-cli
$127.0.0.1:6379> info


Windows:

  • redis-server --service-install redis.windows-service.conf --loglevel verbose

Redis Enterprise[edit]

Redis Enterprise is a commercial version of Redis including replication capabilities.

K8s operator for Redis Enterprise was released in October 2018.

CRDB (Conflict-free Replicated Redis Database) allows to run an application in a distributed manner across cloud and on-prem.

Activities[edit]

Related terms[edit]

See also[edit]

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikiversity.org/wiki/Big_Data/Redis_DataBase

Advertising: