Let's talk about something today, NoSQL. A listen to NoSQL maybe many people will feel very tall feeling, but actually contacted also feel OK, with the current data of the crazy explosive growth, traditional RDBMS also more and more exposed his
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,
ways to implement transactionsmulti (Open transaction) +exec (commit) +discard (Discard transaction) +watch (CAS optimistic lock) Lua script
the characteristics of Redis affairsAll methods in a transaction are executed serially, the execution is not
thought → idea → action → habit → personality → Destiny
Program.cs Content:
Using Newtonsoft.json;
Using Stackexchange.redis;
Using System;
Using System.Data;
Using System.IO;
Using System.Runtime.Serialization.Formatters.Binary; Namespace
Message Notification
Task Queues
Benefits of using task queuesLoose coupling. Producers and consumers do not need to know each other's implementation details, just agree to a good description of the task format. This allows producers and consumers
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
Redis-cluster Research and use
Blog Categories:Redis Redis Cluster Distributed storage Recent research Redis-cluster, just set up an environment, encountered a lot of pits, the system's summary, wait until REDIS3 release, replace Memcache cluster.
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,
Single process
Redis single process model, to handle client requests, by wrapping the Epoll function, the actual processing speed of Redis relies entirely on the execution efficiency of the process. Epoll, the Linux kernel's improved epoll for
Set set common operations directives
Set is a single-valued, multi-value data structure that does not allow the same elements to existSadd key value [value]
Adding elements to form the association of key and valueNote that if we enter a value with
Spring Bean
-- --
Use
@Resource (name = "Mutiljedispoolmap") public map Mutiljedispoolmap; /** * Method Description: Get Jedis object from Connection pool */public Jedis getresource (String redispoolkey)
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,
Redis backup and restore, with the help of third-party tools, Redis-dump
1, install Redis-dump
[Root@localhost tank]# yum install ruby RubyGems ruby-devel //install RubyGems and related packages
[root@localhost tank]# Gem Sources-a
Persistence of
RDB Mode (default)
The RDB approach is persisted through snapshots (snapshotting), and Redis automatically snaps all of the data in memory and stores it on the hard disk when certain conditions are met. The conditions for a snapshot
①: Enter the redis-3.0.7 (folder to store the source code)
②: Copy redis.conf to Bin directory
③: The view card matches the permissions of the past redis.conf, as shown below:
➣:-rw-r--r--: The owner has permission to read and write, and the
Redis provides two persistence options, the RDB and the AOF, respectively.
By default 60 seconds are flushed to disk once [save 60 10000 when there are 1w keys data is changed when the],redis data set is saved in a binary file called Dump.rdb, this
Redis is a NoSQL database. This series of blogs is mainly for the installation of the server environment problems encountered. Using NoSQL databases can improve the efficiency of data access. Because I used redis in my project, and now I need to
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