What's Redis?
Redis is an open-source, Key-value database that is written in C, that supports network interaction, and can be based on memory and persistence.
Redis's official website address, very good remember, is Redis.io. (specially checked,
Structure Type
values stored by the structure
the ability to read and write structures
String
can make strings, integers, floating-point numbers
Performs an operation on an entire string or part of a string, and
First, introduce
Redis is completely open source free, compliant with the BSD protocol, and is a high-performance key-value database. Redis and other Key-value cache products have the following three features: Redis support the persistence of data,
First, download the latest version of the Redis cd/usr/local/src wget-c https://redis.googlecode.com/files/redis-2.6.14.tar.gz
Second, compile and install Redis TAR-ZXVF redis-2.6.14.tar.gz cd redis-2.6.14 make sudo do install you need to install
#最近在研究NOSQL中的Redis的安装以及连接服务器
Preparation: Windows working platform, redis database, please download the website and extract it to the local disk to install the Redis process I do not detail: The following two pictures
let's go to the second
/********************************* general *********************************/ // Whether to run as a daemon daemonize yes // such as a later process, you need to specify a PID, the default is/var/run/ redis.pid
Redis is a NoSQL database based on key-value pairs (key-value), which contains a variety of data structures. The number given on official web is read and write performance can reach 100,000/sec, visible speed.
As a simple example, open 5 Redis
#!/bin/sh
# chkconfig:2345 90 10
# Description:redis is a persistent key-value database
# simple Redis INIT.D script conceived to work on Linux systems
# as it does use of the/proc filesystem.
dear friends, long time no see. Has not been updated recently, because the company's project has been catching progress, but also table structure replacement, and refactoring, but also iterative requirements. Feel the project is going to be rotten ..
This blog post mainly describes how to implement cache development using SPRINGAOP + Redis + annotations. First, term description 1, Springaop AOP (Aspect oriented programming), the technology of aspect-oriented programming. AOP is a useful
Access to Redis, similar to access to MySQL, can be done via client software. When MySQL is installed on a server A, I can access this MySQL on the other server via Server A's Ip,mysql port number, account, password to connect to MySQL on server A.
problem Description: My Redis is installed on the CENTOS7 operating system of the virtual machine, but running my Windows write Jedis program has always reported the connection timeout, I try to add connection time in Jedis, but has been no effect,
Brief introduction
MongoDB is more like MySQL, support field index, cursor operation, the advantage is that the query is more powerful, good at querying JSON data, can store large amounts of data, but does not support transactions.
MySQL is
problems encountered
Springboot Integrated Redis, refer to the blog:
Http://www.tuicool.com/articles/mAriMbI
Problems that exist:When injecting redistemplate, if you follow the blog's approach, add generics
@Autowired
Private redistemplate
Redis is started in the cmd window, and the operation will be error when the window is closed.
Installing Redis as a service enables it to start in the background without worrying about shutting down the service window.
The configuration is as
Redis is now a popular cache database, and it is generally found that it can store strings (string), hash tables (hashes), lists, collections (set), ordered collections (sorted set), and so on. Redis is a Key-value store, and value can contain many
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