Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:redis [2018/09/17 22:25] billdozor [Security] |
linux_wiki:redis [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 100: | Line 100: | ||
===== General ===== | ===== General ===== | ||
+ | |||
+ | **Daemonize** | ||
+ | * Enable redis to run as a daemon< | ||
+ | |||
+ | **Supervisor Interaction** | ||
+ | * Enable redis to send signals to systemd< | ||
+ | |||
+ | **Append Log** | ||
+ | * Enable append only file< | ||
+ | |||
+ | **File Sync** | ||
+ | * Configure how often memory flushes to disk< | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Client: Install ====== | ||
+ | |||
+ | Install the Python Redis client< | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Client: Configure ====== | ||
+ | |||
+ | Import the Redis module and connect to the Redis server< | ||
+ | |||
+ | redis_db.keys() | ||
+ | |||
+ | redis_db = redis.StrictRedis(host=" | ||
+ | |||
+ | \\ | ||
+ | **Example Client Use** | ||
+ | * String | ||
+ | * List | ||
+ | * Hash | ||
---- | ---- | ||