Redis Notes 5: Sets of Data Types

Command Description Syntax SADD add value SADD key member [member...] SMEMBERS traversal set SMEMBERS key SCARD Gets the number of key members SCARD key SISMEMBER Determines whether a member has a SISMEMBER key member Spop Random Delete Element Spop key SREM deletes the specified member SREM key member [member...] SRANDMEMBER randomly ret ...

Posted by xSN1PERxEL1TEx on Tue, 09 Apr 2019 21:00:31 -0700

Redis Note 8: Parse the configuration file redis.conf

If it's a professional DBA, the instance boots with a lot of parameters to make the system run very stable, which may add a parameter after Redis at boot to specify the path of the configuration file, just like MySQL, to start the database by reading the boot configuration file. After the source code is compiled, there is a redis.conf file in ...

Posted by eurozaf on Tue, 09 Apr 2019 11:18:31 -0700

django celery redis practice

Environmental preparation python3.5.4 windows redis pip install celery pip install redis Start redirs server under windows redis-server.exe redis.windows.conf image.png celery configuration Project settings.py file modification: # celery settings # celery intermediary redis://redis service ip address: port/database num ...

Posted by stuckwithcode on Sun, 07 Apr 2019 19:33:32 -0700

Stateless session

One, What? When a user accesses a system, it is "nonexistent" session, which disconnects and connects the system at the first visit. In this case, it is generally necessary to control in the background to maintain the relationship between the user and the system. Since Tomcat server can't do it, we can consider redis. Two, Why? Benefi ...

Posted by SieRobin on Sun, 07 Apr 2019 13:48:30 -0700

Web Architecture-Server Architecture to Prevent High Concurrency

CDN (static resources) + Nginx (load balancing & reverse proxy) + Redis (master-slave configuration & Sentinel listening cluster) + Mysql (master-slave configuration) Introduction: Business from the initial stage of development to gradually mature, server architecture is also from relatively single to cluster, then to distributed, techn ...

Posted by frymaster on Sun, 07 Apr 2019 08:48:31 -0700

Analysis of Kafka Log Compaction

Looking at the Kafka document recently, I found that Kafka has one. Log Compaction Functions we haven't noticed before, but they have high potential practical value. What is Log Compaction Every piece of data in Kafka has a pair of Keys and Value s, which are stored on disk and will not be preserved permanently, but delete the earliest written ...

Posted by AmandaF on Sun, 07 Apr 2019 07:12:31 -0700

MVC - Single Sign-on Middleware

This chapter will share with you a single sign-on middleware. The middleware sounds profound. In fact, this middleware just encapsulates the logic and processing flow used in single sign-on into several methods. The default support uses redis service to save sessions. It can also use parameter Func<> method to customize session storage op ...

Posted by keystroke on Wed, 03 Apr 2019 17:45:31 -0700

Ubuntu 14.04 Installation redis and Simple Configuration

1, foreword Redis Is a commonly used memory-based Key-Value data base It is more advanced than Memcache and supports many kinds data structure It is efficient and fast. Redis can easily solve the problem of high concurrent data access; it is also very good as a time-to-time monitoring signal processing. 2, installation //Installing R ...

Posted by jcran on Wed, 03 Apr 2019 12:57:30 -0700

CentOS 6.5 Compile and Install gitlab

Reference resources https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md https://bbs.gitlab.cc/topic/35/gitlab-ce-8-7-%E6%BA%90%E7%A0%81%E5%AE%89%E8%A3%85%E6%89%8B%E5%86%8C-centos6-rehl6/2 I. Configuration Foundation 1. Install epel source yum -y install epel-release vim wget ntpdate gcc gcc-c++ -y /usr/sbin/ntp ...

Posted by prinzcy on Tue, 02 Apr 2019 15:45:29 -0700

Using yii2-queue and redis to implement queue function

Why use it? Activeemq has been used before, but it's Java-based. It has to be loaded with a bunch of things and configured. And I'm just a relatively simple function, so I'm not going to use it. But I'll learn later that yii2-queue can be combined. install First you have to install it with composer, which is very simple, under your project dire ...

Posted by Darkmatter5 on Mon, 01 Apr 2019 10:09:28 -0700