Spring Integrated Redis

Source: Internet
Author: User
Tags delete cache redis cluster

Use Redis to cache (add cache when querying), Cache sync (delete cache when adding and deleting), Redis persistence (aof: Poor performance, data integrity; RDB: Save periodically, possibly lose data)

<!--Redis Standalone version -    <BeanID= "Jedispool"class= "Redis.clients.jedis.JedisPool">        <Constructor-argname= "Host"value= "192.168.25.128"/>            <Constructor-argname= "Port"value= "6379"/>        </Bean>    <BeanID= "Jedisclientpool"class= "Com.taotao.jedis.JedisClientPool"/>    <!--Redis Cluster -    <!-- <bean id= "Jediscluster" class= "Redis.clients.jedis.JedisCluster" > <constructor-arg> <set > <bean class= "redis.clients.jedis.HostAndPort" > <constructor-arg name= "host "Value=" 192.168.25.128 "/> <constructor-arg name=" port "value=" 7001 "/> </bea n> <bean class= "Redis.clients.jedis.HostAndPort" > <constructor-arg name= "hos T "value=" 192.168.25.128 "/> <constructor-arg name=" port "value=" 7002 "/> </be an> <bean class= "Redis.clients.jedis.HostAndPort" > <constructor-arg name= "ho St "value=" 192.168.25.128 "/> <constructor-arg name=" port "value=" 7003 "/> </b ean> <bean class= "Redis.clients.jedis.HostAndPort" > <constructor-arg name= "H OST "Value=" 192.168.25.1"/> <constructor-arg name=" port "value=" 7004 "/> </bean> <bean class= "Redis.clients.jedis.HostAndPort" > <constructor-arg name= "host" value= "192.168.25.                "/> <constructor-arg name=" port "value=" 7005 "/> </bean> <bean class= "Redis.clients.jedis.HostAndPort" > <constructor-arg name= "host" value= "192.168.25 . "/> <constructor-arg name=" port "value=" 7006 "/> </bean> &l t;/set> </constructor-arg> </bean> <bean id= "Jedisclientcluster" class= "com.taotao.jedis.Je  Disclientcluster "/> -

Spring Integrated Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.