linux_wiki:redis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:redis [2018/09/17 22:25]
billdozor [General]
linux_wiki:redis [2019/05/25 23:50] (current)
Line 101: Line 101:
 ===== General ===== ===== General =====
  
-  FIXME - to do+**Daemonize** 
 +  * Enable redis to run as a daemon<code bash>daemonize yes</code> 
 + 
 +**Supervisor Interaction** 
 +  * Enable redis to send signals to systemd<code bash>supervised systemd</code> 
 + 
 +**Append Log** 
 +  * Enable append only file<code bash>appendonly yes</code> 
 + 
 +**File Sync** 
 +  * Configure how often memory flushes to disk<code bash>appendfsync everysec</code> 
 + 
 +---- 
 + 
 +====== Client: Install ====== 
 + 
 +Install the Python Redis client<code bash>pip install redis</code> 
 + 
 +---- 
 + 
 +====== Client: Configure ====== 
 + 
 +Import the Redis module and connect to the Redis server<code bash>import redis 
 + 
 +redis_db.keys() 
 + 
 +redis_db = redis.StrictRedis(host="192.168.1.151", port=6379, db=0, password="c5bdeb2b550e038740466ec0c8dc03df3e8bb629bde539251840da1af6ee62d2")</code> 
 + 
 +\\ 
 +**Example Client Use** 
 +  * String 
 +  * List 
 +  * Hash
  
 ---- ----
  
  • linux_wiki/redis.1537237551.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)