
MongoDB+Redis+Elasticsearch
MongoDB+Redis+Elasticsearch
seven瓜
这个作者很懒,什么都没留下…
展开
-
MongoDB正则查询操作
插入一条数据: { "_id" : ObjectId("61a83d5502bb260d1cec4e46"), "money" : 666, "id" : 1, "text1" : "ddfdfaf", "text2" : "hkjhkjh" } { "_id" : ObjectId("61a8411402bb2614109443f2"), "money" : 888, "id" : 2, "text1" : "ddfaf2", "text2" : "hkjhk原创 2021-12-08 11:58:36 · 3117 阅读 · 0 评论 -
Redis的序列化
之前的项目,每次查看redis,都是一堆乱码,直到最近才知道是因为没有序列化: 配置类: package com.trgis.visual.config; import com.trgis.visual.model.FastJson2JsonRedisSerializer; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; i原创 2021-02-22 17:16:49 · 342 阅读 · 1 评论 -
Redis的局域网访问设置
将redis.windows.conf文件中以下语句【bind 127.0.0.1】屏蔽: 将此处【protected-mode no】改为yes: 在以下位置【# requirepass foobared】添加密码。保证安全: 重启命令: //启动 Redis redis-server.exe redis.windows.conf //连接数据库 redis-cli.exe --raw -p 6379 -a //关闭数据库 1.redis-cli.exe 2.auth 1原创 2020-11-26 17:40:21 · 4198 阅读 · 0 评论 -
Elasticsearch查询那些事
查询结果构成: #! Deprecation: [types removal] Specifying types in search requests is deprecated. { "took" : 1, //耗费了几毫秒 "timed_out" : false, //是否超时 "_shards" : { //数据拆成1个分片 "total"原创 2020-10-09 18:08:40 · 1298 阅读 · 0 评论