- Feb 2023
-
github.com github.com
-
www.redis.com.cn www.redis.com.cn
-
redis中文文档
- [ ] redis中文文档
-
- Dec 2022
-
heapdump.cn heapdump.cn
-
zhuanlan.zhihu.com zhuanlan.zhihu.com
-
Spring Cloud + Redis 是如何实现点赞、取消点赞的?
Tags
Annotators
URL
-
-
www.cnblogs.com www.cnblogs.com
-
经认证,在spring boot的版本号为1.5.0的时候 添加spring-boot-starter-reids就找不到jar包了,也就是这个jar包直接被废弃了。所以千万要注意的是:如果你的spring boot的版本号在1.5.0以后的,添加redis的jar包就必须是spring-boot-starter-data-redis。。。。
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
jwt与token+redis,哪种方案更好用?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Redis源码中hyperloglog结构的实现原理是什么?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
有些上古程序猿一直坚持反对使用redis怎么办?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Redis 怎么做消息队列?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
以王垠的水平,他可以开发出像 nginx 和 redis 这样的软件吗?
Tags
Annotators
URL
-
- Nov 2022
-
github.com github.com
-
Sidekiq uses all of the data structures Redis provides: lists, sorted sets, hashes.
-
- Sep 2022
-
redis.io redis.io
-
In a way, a consumer group can be imagined as some amount of state about a stream:
which can be fetched from
XINFO GROUPS <somekey>
Tags
Annotators
URL
-
- Aug 2022
-
time.geekbang.org time.geekbang.org
-
它内部使用的 GenericJackson2JsonRedisSerializer 直接设置了把类型作为属性保存到 Value 中
Tags
Annotators
URL
-
-
www.jianshu.com www.jianshu.com
-
springboot + redis + 注解 + 拦截器 实现接口幂等性校验
-
- Jul 2022
-
redis.com.cn redis.com.cn
-
运行CLI不需要任何特殊操作-无需任何参数即可启动它,即可处于交互模式下: $ redis-cli 127.0.0.1:6379> ping PONG
redis-cli
Tags
Annotators
URL
-
- May 2022
-
-
$ redis-cli -a myUnguessablePazzzzzword123 PING
redis-cli -a password PING
Tags
Annotators
URL
-
- Apr 2022
-
blog.csdn.net blog.csdn.net
-
以为集合(Set)类型里面的元素总是无序排列的,其实不是的,在特定情况下,它也可以做到有序排列。 在redis里,集合的编码有两种,intset(整数集合)或者hashtable(哈希表)。intset编码的集合里面的元素是有序的(按照整数从小到大排列),hashtable编码的集合是无序的。 当集合同时满足下面两个条件时,会使用intset编码: 保存的所有元素都是整数元素数量不超过512个(这个值可以通过配置文件里的set-max-intset-entries进行调整) 要注意的是,一个使用intset编码的集合,当上述两个条件不能同时满足时,redis就会将集合的编码由intset改为hashtable。
redis 集合(Set)的排序问题
集合的编码有 inset(整数集合)、hashtable(哈希表)。
intset 编码的集合内元素是有序的,按整数从小到大排列。
hashtable 编码的集合是无序的。
集合满足 2 个条件,会使用 intset 编码: 1> 所有元素是整数; 2> 元素数量 <= 512 个; (数量,可在配置文件 set-max-intset-entries 设置)
不满足以上两个条件,redis 会将集合的编码由 intset 改为 hashtable。
-
-
-
SETEX key seconds value
Set key to hold the string value and set key to timeout after a given number of seconds.
This command is equivalent to executing the following commands:
SET mykey value EXPIRE mykey seconds
Tags
Annotators
URL
-
- Jun 2021
-
-
HTTP REST seems like an "out of external dependency" way to go.
-
Personally, I like having Redis as a dependency as most of my current applications use two Redis instances; persistent store and volatile.
-
-
twitter.com twitter.com
-
So ActionCable needs Redis! Is this the first time Rails is aligning with a vendor product? Why not abstract it like AR/AJ?
-
- Jul 2020
- Apr 2020
-
github.com github.comrq/rq1
-
def handle_exception(self, job, *exc_info):
To unit test an exception handler:
worker = Worker(..., exception_handler=[handle_exception]) try: raise Exception() except Exception: exc_info = sys.exc_info() worker.handle_exception(job, *exc_info)
-
-
python-rq.org python-rq.orgRQ: Jobs3
-
failure_ttl
How long to keep a failed job.
-
result_ttl=600
How long to keep a successful job.
-
job.meta['handled_by'] = socket.gethostname() job.save_meta()
You can add metadata on the job like keeping track of the number of times a job has been retried for example.
Tags
Annotators
URL
-
-
python-rq.org python-rq.org
-
w = Worker([q], exception_handlers=[foo_handler, bar_handler])
Exception handlers are attached to the worker.
-
def my_handler(job, exc_type, exc_value, traceback): # do custom things here
Write an exception handler that requeues a failed job.
Tags
Annotators
URL
-
- Jan 2020
-
blog.cspub.net blog.cspub.net
-
But the reason is that, if your host system does not have the vm.overcommit_memory=1 enabled, you will not be able to switch it inside container.
Fixed redis issue on harbor: "Can't save in background: fork: Cannot allocate memory"
Added on /root/harbor/docker-compose.yml:
command: sh -c 'echo 1 > /proc/sys/vm/overcommit_memory'
Also executed command: sh -c 'echo 1 > /proc/sys/vm/overcommit_memory' on the main server harbor (not only on the container)
Tags
Annotators
URL
-
- Aug 2019
- Nov 2018
- Dec 2017
-
stackoverflow.com stackoverflow.com
- Jul 2017
-
openresty.org openresty.org
-
since
lua-resty-redis
can not be used inset_by_lua*
, dynamic routing based on redis should be impelemented in theaccess_by_lua
block
-
- Oct 2014
-
-
This in turn means that Redis Cluster does not have to take meta data in the data structures in order to attempt a value merge, and that the fancy commands and data structures supported by Redis are also supported by Redis Cluster. So no additional memory overhead, no API limits, no limits in the amount of elements a value can contain, but less safety during partitions.
A solid trade-off, I think, and says a lot about the intended use cases.
Tags
Annotators
URL
-