- 博客(2)
- 收藏
- 关注
原创 Redis过期监听机制实现订单超时处理
1.修改redis.conf配置文件 将notify-keyspace-events的值" "改为Ex,保存 2.创建 RedisListenerConfig 配置类 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConn
2022-03-25 17:46:12
897
原创 备份和还原Docker容器中的MongoDB数据
备份 备份MongoDB有多种方法,其中比较简单的就是使用mongodump。 docker exec -i <IMAGE_NAME> mongodump -d <DATABASE> --archive > ./mongo/collections.archive 以上命令会将<IMAGE_NAME>容器中的<DATABASE>数据库dump到host机器的collections.archive文件中。 --archive会dump所有coll
2022-03-25 17:21:10
1639
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人