www.cpsh.net > ΪʲôҪʹrEDis

ΪʲôҪʹrEDis

Redis:RedisSalvatore Sanfilippo(:antirez)һڴٻݿ.RedisȫΪ:Remote Dictionary Server(Զݷ),ʹCԱд,Redisһkey-value洢ϵͳ,ַ֧ḻ

SCAN ÿα֮, ûһµα,û´εʱҪʹαΪ SCAN α, Դ֮ǰĵ.ͬʱ,ʹSCAN,ûʹkeynameģʽcountѡе.

Redis key - value Ʒص:Redis֧ݵij־û,Խڴеݱڴ,ʱٴμؽʹ.Redisּ֧򵥵key-value͵,ͬʱṩlist,set,zset,hashݽṹĴ洢

javaʹredisʹjedis,jedis,ûʲôӵĶҪѧϰ,Ϻܶ,㿴ͻ.springredis漯,ʵҲʹjedis,ֻspringһװ,װΪspring-data-redis.潫Ҫʹspring-data-redisjedisjar,ͨspringaop,redis޷Ͻ.Ե7979079

Mac OSϰװredisǰװ,Ĭϰװ/usr/local/bin´:cd /tmpwget tar -zxf redis-2.6.9.tar.gzcd redis-2.6.9makesudo make install

redisֻṩһܵġԭӲķֲʽʵ.ҵǵҪԼ.ʵһε-ʵ.ڴ,ҪǽʵʵĴ̽,һ㶼Dzȡ첽ķʽ֪ͨ,òredisʵûжĹϵ.һʵַҪûװһTask,ȻTaskpushredis,Ȼ˵worker.phpȫԶ̵̡߳IJTaskص.Ψһ鷳ľTask,ҪܹϢ(,󷽱ʶȵ).

ƷϢ(ֿ)Ʒ ǻ,ЩϢȫһԼص redis ,ΪֻϢ,ֱӴ redis вѯ.߲ʹ redis,Ǽݿֻӿ(MySQLпmemcachedΪݻ),Ӵӿжȡ.

shipperindexerlogstash,ֻǵļһ.brokerһredis,еshipperϵ־ͳһredis.indexerbrokerȡ,洢elasticsearch.webinterfaceһʹkibana,esмkibana,ǻԼװ.

ʹhashԸõıʾһĽṹ,ԱֱͨRedisAPIͿԲ.:hmset hashKey p1 1 p2 2 p3 3hget hashKey p1hget hashKey p2hset hashKey p3 123Ľṹ.

redisݿ,ֻһֻ,Ϊ˻ƵݿڴԴ,redisҪݿ⽻Ϣݴ,´ͬhttp,ֱӶȡredis,öݿ.ݿѹ߷Ӧʱ.ܲѽ.

վͼ

All rights reserved Powered by www.cpsh.net

copyright ©right 2010-2021
www.cpsh.net磬ַϵͷzhit325@qq.com