Sometimes we need to use Redis as the caching service on the Windows platform, which requires Redis to be installed as a window service.Now, I will record the installation process, to facilitate their own or have similar needs of the students
Redis data is stored in memory. As the system runs, more and more redis data will lead to insufficient physical memory. The virtual memory (VM) is used to swap infrequently accessed data to the disk and free up the memory space to solve the problem
There is such a demandBefore inserting a database, you need to know the database ID. Considering how different hosts work with this ID, It is troublesome to ensure that each host has a different ID, if it is troublesome to independently open a
(The Basics of redis installation, configuration, and login are no longer mentioned. There are a lot of information on the Internet. Here I only talk about my understanding and configuration of multiple redis instances) My own redis version is 2.8.1
1 . Sadd num a B C add three ABC elements to the num set 2 . Srem num B: delete Element B from the num set 3 . Smembers num get all elements in the num set 4 . Sismember num C judge whether C exists in the num set =============================
A large number of zincrby commands are used in the project because the Count value of an indicator in the log needs to be counted and the topn needs to be returned in order.
Normally, zincrby (zincrby default: Type 1 typea) can work normally.
The
1. installation environment, VM + centos6.5ps: If yum is installed, the first step is as follows: install mkdir/usr/redis new redis directory CD/usr/redis enter the directory wget http://download.redis.io/releases/redis-2.8.13.tar.gz download 2.8.13
First, install a Ubuntu Virtual Machine to install redis. Ubuntu unity is stuck in the virtual machine. You can install the traditional gnome interface as follows:
Sudo aptitude install gnome-session-Fallback
After the installation is complete, you
What is slowlog?
Slow log is the log system used by redis to record the query execution time.
The query execution time does not include I/O operations such as client response (TALKING) and reply sending, but is the time consumed by executing a query
Ehcache
It is widely used in Java projects. It is an open-source cache solution designed to improve the high cost and high latency of data retrieved from RDBMS. Because ehcache is robust (developed based on Java), certified (with Apache 2.0 license),
Redis command collection
Redis command summary connection operation related commands
Quit: disconnect)
Auth: Simple Password Authentication
Persistence
Save: synchronize and save data to the disk.
Bgsave: asynchronously saves data to the
Ehcache memcache redis three major cache voices 10500 people read comments (2) collect reports
Recently, the project team used these three caches and looked at them on their respective official websites. I think they have their own merits! The
Currently, redis is very red and red, and many application scenarios are suitable for using reids for caching or direct storage, such as MySQL front-end caching and ranking in mobile games. So how can we use golang to operate redis?
Familiar with
Problems with traditional MySQL + memcached Architecture
MySQL is suitable for storing massive data. Many companies have used this architecture to load hotspot data to the cache through memcached to accelerate access. However, as the business data
1. Test
See the master-slave test post.2 Principle
First,The implementation of slave synchronization to the master is:
Slave sends a synchronization request to the master (Send sync command), The Master first dump out the RDB file, and then
Software environment:
OS: ubuntu-12.04-desktop-amd64
Redis: redis-2.8.13.tar.gz
TCL: tcl8.6.2-src.tar.gz
VMware: VMware Workstation 10
OS: Win 7-64
First install the operating system, and then use the clone function to clone four copies:
Previously, I made a redis cluster solution, which lasted less than half a year and was stable online.I can share my experiences with you. I wrote an article about data online service exploration experience, which can be used as a background.Our
Background:
Redis started with merzia, an Italian startup, founder Salvatore sanfilippo, and Pieter noordhuis, another major code contributor, who is currently working on redis in VMware. The redis code is hosted on GitHub.
Redis is a single-thread
The seven weapons used by Gu Long's pen are: changshengjian, peacock, biyu Dao, Duoqing ring, separation hook, Overlord gun, and fist, in this article, we plan to compare several usage methods of redis, such as strings, hashs, lists, sets, sorted
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.