|
- redis - WRONGTYPE Operation against a key holding the wrong kind of . . .
Redis supports 6 data types You need to know what type of value that a key maps to, as for each data type, the command to retrieve it is different Here are the commands to retrieve key value(s):
- How to set Redis max memory? - Stack Overflow
Since this is an old question, users who are reading in 2019 and using Ubuntu 18 04, the configuration file is located in etc redis redis conf and if you have installed using (default recommended method) apt install redis-server the default memory limit is set to "0" which practically means there is "no limit" which can be troublesome if user
- Redis: Show database size size for keys - Stack Overflow
Redis does not provide an out-of-the-box command to retrieve memory consumption per database or per key But don't worry there are many ways A very simple solution : Use the redis-cli cmd tool with --bigkeys see below cmd redis-cli --bigkeys You can use the MEMORY USAGE cmd that returns the number of bytes consumed by a key see below cmd
- Redis raises NOAUTH Authentication required error but there is no . . .
Redis password has been saved in redis conf in this etc redis directory you are able to see edit redis config password by: sudo vim etc redis redis conf Scroll to the SECURITY section and look for a commented directive that reads(use to enter a phrase to search in vim and press enter): # requirepass foobared
- How to know master slave status of redis? - Stack Overflow
I want to expand on the answer above by providing status meanings in a distributed setup # get sentinel redis instance role of remote host: › redis-cli -h redis-02 a_slave -p 6379 info|grep role role:slave # get sentinel status of remote host: › redis-cli -h redis-01 a_sentinel -p 26379 info|grep status master0:name=mymaster,status=ok,address=172 xx xxx xx:6379,slaves=2,sentinels=3
- caching - Memcached vs. Redis? - Stack Overflow
Redis is more powerful, more popular, and better supported than memcached Memcached can only do a small fraction of the things Redis can do Redis is better even where their features overlap For anything new, use Redis Memcached vs Redis: Direct Comparison Both tools are powerful, fast, in-memory data stores that are useful as a cache
- How do I run Redis on Windows? - Stack Overflow
redis-server --service-install redis windows conf --loglevel verbose And then later, in the same document, another example: The following would install and start three separate instances of Redis as a service: redis-server --service-install -–service-name redisService1 –port 10001 redis-server --service-start --service-name redisService1
- How does redis expire keys? - Stack Overflow
For the Redis 6, from the release notes: The expiration cycle has been rewritten in Redis 6 0 to allow for much faster expirations that more closely match the time-to-live (TTL) property Redis 6 expiration will no longer be based on random sampling but will take keys sorted by expire time in a radix tree — Redis 6 release notes
|
|
|