window下不用安装虚拟机,也可以玩转linux,玩转最新redis
摘要:想要了解redis的最新特性,可是windows下的可以安装的版本最高为3.2,想要验证redis的诸如stream特性的话,就无能为力了。详情见https://github.com/microsoftarchive/redis/releases 解决方法之一在windows上安装虚拟机,然后再虚拟
阅读全文
posted @
2019-08-02 13:07
一天不进步,就是退步
阅读(2178)
推荐(5) 编辑
亿级别记录的mongodb分页查询java代码实现
摘要:1.准备环境 1.1 mongodb下载 1.2 mongodb启动 C:\mongodb\bin\mongod --dbpath D:\mongodb\data 1.3 可视化mongo工具Robo 3T下载 2.准备数据 java代码执行 3.分页查询 传统的limit方式当数据量较大时查询缓慢
阅读全文
posted @
2018-11-01 17:09
一天不进步,就是退步
阅读(1561)
推荐(0) 编辑
cachecloud:Redis云管理平台
摘要:https://github.com/sohutv/cachecloud 一、CacheCloud是做什么的 CacheCloud提供一个Redis云管理平台:实现多种类型(Redis Standalone、Redis Sentinel、Redis Cluster)自动部署、解决Redis实例碎片化
阅读全文
posted @
2018-07-02 16:48
一天不进步,就是退步
阅读(597)
推荐(0) 编辑
dynomite:高可用多数据中心同步
摘要:https://github.com/Netflix/dynomite Dynomite, inspired by Dynamo whitepaper, is a thin, distributed dynamo layer for different storage engines and pro
阅读全文
posted @
2018-07-02 14:16
一天不进步,就是退步
阅读(490)
推荐(0) 编辑
spring-redis-data的一个坑
摘要:事故原因: 运维报告redis内存直线上升,然后查询发现都是setrange操作,review代码,没法发现setrange操作 代码如下: redisTemplate.opsForValue().set(groupid+xxxResult.getSeriesNo(), JSON.toJSONStr
阅读全文
posted @
2018-04-12 13:54
一天不进步,就是退步
阅读(1383)
推荐(0) 编辑
php和java的memcached使用的兼容性问题解决过程
摘要:1. 背景: php 使用memcached客户端设置一个key,java使用java-memcached-client去读,报错如下: ERROR|com.whalin.MemCached.MemCachedClient:-1|++++ exception thrown while trying
阅读全文
posted @
2016-03-01 09:54
一天不进步,就是退步
阅读(1411)
推荐(0) 编辑
redis 控制调用频率
摘要:redis提供了rate limit demo 如下所示:INCRkeyAvailable since 1.0.0.Time complexity:O(1)Increments the number stored atkeyby one. If the key does not exist, it ...
阅读全文
posted @
2014-09-15 09:57
一天不进步,就是退步
阅读(2722)
推荐(0) 编辑
Memcached Java Client with sample program--reference
摘要:In my previous post, I listed down most commontelnet commands for memcachedwith sample execution terminal logs. Today I want to discuss about the Memc...
阅读全文
posted @
2014-06-19 18:32
一天不进步,就是退步
阅读(616)
推荐(0) 编辑
xmemcached user guide --存档
摘要:XMemcached IntroductionXMemcached is a new java memcached client. Maybe you don't know "memcached" so far, you can checkHere. It is a free & open sour...
阅读全文
posted @
2014-06-11 16:13
一天不进步,就是退步
阅读(2209)
推荐(0) 编辑
Memcache及telnent命令详解--转
摘要:1、启动Memcache 常用参数memcached 1.4.3-p 设置端口号(默认不设置为: 11211)-U UDP监听端口 (默认: 11211, 0 时关闭) -l 绑定地址 (默认:所有都允许,无论内外网或者本机更换IP,有安全隐患,若设置为127.0.0.1就只能本机访问)-dduli...
阅读全文
posted @
2014-05-30 16:22
一天不进步,就是退步
阅读(434)
推荐(0) 编辑
keepalived + haproxy 实现web 双主模型的高可用负载均衡--转
摘要:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://xz159065974.blog.51cto.com/8618592/14058121、本文的架构图:阐述各服务器用途: 1、haproxy在本构架中实现的是:负载均衡 2、keepal...
阅读全文
posted @
2014-05-09 14:38
一天不进步,就是退步
阅读(8507)
推荐(1) 编辑
Memcached source code analysis (threading model)--reference
摘要:Look under the start memcahcedthreadingprocessmemcached multi-threaded mainly by instantiating multiple libevent, are a main thread and n workers thre...
阅读全文
posted @
2014-04-30 18:11
一天不进步,就是退步
阅读(832)
推荐(0) 编辑
Memcached source code analysis -- Analysis of change of state--reference
摘要:This article mainly introduces the process of Memcached, libevent structure of the main thread and worker thread based on the processing of the connec...
阅读全文
posted @
2014-04-30 17:49
一天不进步,就是退步
阅读(582)
推荐(0) 编辑
How-to Dump Keys from Memcache--reference
摘要:Submitted by Lars Windolf on 19. October 2012 - 21:53http://lzone.de/dump%20memcache%20keysYou spent already 50GB on the memcache cluster, but you sti...
阅读全文
posted @
2014-04-30 11:06
一天不进步,就是退步
阅读(646)
推荐(0) 编辑
memcached client --ref
摘要:ClientsClient API's / librariesUpdatedJul 14, 2012bydorma...@rydia.netref:https://code.google.com/p/memcached/wiki/ClientsC / C++libmemcachedhttp://li...
阅读全文
posted @
2014-04-14 15:53
一天不进步,就是退步
阅读(1487)
推荐(0) 编辑
redis终于有比较大的进展了,redis3.0.1 稳定版本发布,支持集群。
摘要:原文地址:https://raw.githubusercontent.com/antirez/redis/3.0/00-RELEASENOTESRedis 3.0 release notes--[ Redis 3.0.1 ] Release date: 5 May 2015--[ Redis 3.0...
阅读全文
posted @
2014-03-18 21:17
一天不进步,就是退步
阅读(20744)
推荐(0) 编辑
阅读redis源代码的一些体会
摘要:最近在学习redis及阅读redis等程序的源码时,有一些收获,特记录到下面。1.第一步,阅读源代码借助最好可以跟踪的工具去读,如sourceinsight。 我使用的是windows7环境,又因为是c程序,故使用sourceinsight,当然还有其他的方式,比如阅读java代码可以导入到eclipse。2. 第二步,搭建可以启动该源程序的环境,并能启动成功。 根据最简单的配置,使用源码编译的方式,启动该程序。逐渐参考用户使用手册,修改配置文件进行测试,进而熟悉redis的使用。3.第三步,阅读代码前先理清楚源码的数据结构、基本概念、算法。 数据结构诸如字典、双向链表的实现; 概念诸如aof
阅读全文
posted @
2014-02-17 12:07
一天不进步,就是退步
阅读(4769)
推荐(0) 编辑
深入redis内部之redis启动过程之二
摘要:接上文,继续分析代码1. 设置线程安全模式 zmalloc_enable_thread_safeness();/*设置线程安全标识符为1*/ void zmalloc_enable_thread_safeness(void) { zmalloc_thread_safe = 1; }2. 内存溢出处理 zmalloc_set_oom_handler(redisOutOfMemoryHandler);/* 内存溢出的调用方法*/ void zmalloc_set_oom_handler(void (*oom_handler)(size_t)) { zmalloc...
阅读全文
posted @
2014-02-07 17:46
一天不进步,就是退步
阅读(924)
推荐(0) 编辑
深入redis内部之redis启动过程之一
摘要:redis作为一个服务器,它的启动是从main函数开始的。redis.c1. 进程重命名#ifdef INIT_SETPROCTITLE_REPLACEMENT spt_init(argc, argv);#endif定义在config.h/* Check if we can use setproctitle(). 修改进程名称 * BSD systems have support for it, we provide an implementation for * Linux and osx. */#if (defined __NetBSD__ || defined __FreeBSD...
阅读全文
posted @
2014-02-07 17:10
一天不进步,就是退步
阅读(2519)
推荐(0) 编辑
HAProxy advanced Redis health check---ref
摘要:http://blog.exceliance.fr/2014/01/02/haproxy-advanced-redis-health-check/HAProxy advanced Redis healthcheckPosted onJanuary 2, 2014 byBaptiste AssmannIntroductionRedisis an opensource nosql database working on a key/value model.One interesting feature inRedisis that it is able to write data to disk
阅读全文
posted @
2014-01-24 15:39
一天不进步,就是退步
阅读(1162)
推荐(0) 编辑