Layout:post
Title:2017-12-05-redis Getting Started
Tags
-Redis
-Real-time features
-UCB, Tompson sampling
---
What is Redis?
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages.
--Quote from Baidu Encyclopedia
How does Redis work? Installation
- Source access, can be downloaded directly from the official website, can also be pulled from GitHub;
- The installation can be done directly at the root of the project, or in the Readme to make other, if only normal use, made enough. It will prompt you to make test;
- The result of make above is that the code and executable program and the intermediate target file are in a directory src, very uncomfortable. Separate, build bin (binary file), conf (redis.conf);
- Start, if you don't have anything special to configure, run directly in the bin./redis-server. /conf/redis.conf can
- To shut down, run the./redis-cli shutdown in the bin.
Operation
Operations are typically done through the client, command-line client./REDIS-CLI, if the Java operation, you need to use the Java client Jedis or Sharedjedis to operate, I believe other languages will have a corresponding client
code example
Redis installation use and possible algorithmic practices