python web Framework Flask-Dynamic Renewal of Graphic Verification Code and Verification Code

The following codes are all described in their own project examples, with little relevant text, mainly in the code annotations. Self-made Graphic Verification Code The graphics verification codes mentioned here are all self-made graphics, drawn by the color of canvas, brush and brush font. It is better to encapsulate the validation code into ...

Added by thinguy on Sun, 13 Oct 2019 21:42:22 +0300

spring-data-redis-cache usage and source code Walk-through

Prospective readers Students preparing to use spring's data-redis-cache Understand the use of @CacheConfig, @Cacheable, @CachePut, @CacheEvict, @Caching Deeply Understanding the Realization Principle of data-redis-cache Description of article content How to use redis-cache Customize keyGenerator and expiration time Source code interpretation ...

Added by Felex on Sun, 13 Oct 2019 12:48:15 +0300

Redis Cache for Fast Reading of Advertising Pages (Spring Data Redis Framework)

Application scenarios: The home page is visited by a large number of people every day, which causes great pressure to access the database, even paralysis. So how to solve it? There are two ways we usually do this: one is data caching, the other is static web pages. *** Four issues considered before us ...

Added by ts2000abc on Fri, 11 Oct 2019 23:26:45 +0300

Docker Tutorial for Front End Engineers - Basic Chapter

Recently, the company has been promoting containerization and k8s, and the project will be changed to Docker deployment. There are several node projects in charge of the project, so you can only learn Docker from scratch. install Docker supports windows, MAC, Linux, tutorial reference Docker Installation Tutorial. Docker is recommended for Mac ...

Added by gordo2dope on Wed, 09 Oct 2019 01:48:33 +0300

Python web framework: Session

In addition to the request object, there is also a session object. It allows you to store specific user information between different requests. It is implemented on the basis of Cookies. To sign a key for Cookies, you need to set a key to use the session. Settings: session ['username']='xxx' Delete: se ...

Added by akitchin on Mon, 07 Oct 2019 21:16:21 +0300

Shiro cache in SpringBook uses Redis and Ehcache

Two examples of Shiro cache implementation using Redis and Ehcache in SpringBook redis is configured as session buffer in SpringBook. Let shiro quote This article is a supplement based on your use of shiro. The first is Redis cache, which stores data in redis and opens session s in redis. Introducing pom <dependency> &lt ...

Added by ryanwood4 on Mon, 07 Oct 2019 20:53:50 +0300

Redis Source Analysis: AOF

Links to the original text: https://my.oschina.net/zipu888/blog/549702 redis 2.4.4 AOF(append-only fashion) is one of the persistence tools of redis. log is written to meet the need ...

Added by mwkemo on Sun, 06 Oct 2019 23:43:42 +0300

Java Operating Redis -- Jedis's API

Let's first look at how java links redis Maven: <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.0.1</version> </dependency> Java: public static void ma ...

Added by watsmyname on Fri, 04 Oct 2019 07:22:14 +0300

spring-boot-plus Operations and Maintenance Deployment

Online deployment Packaging environment is prod mvn clean package -Pprod Packed catalogue cd target/spring-boot-plus-1.2.0.RELEASE-prod Setting up on-line database, Redis and other sensitive information vim spring-boot-plus/config/application-prod.yml Startup service sh spring-boot-plus/bin/startup.sh start log [root@springbootplus spring-boot- ...

Added by tobimichigan on Thu, 03 Oct 2019 20:09:38 +0300

redis - cluster Use Tutorial

redis-cluster tutorial In the case of billiards projects, I want to write some information about users into the redis cache, because redis is stored in key-value mode. Let's save it. Who's afraid of who? import com.yuyuka.billiards.service.config.DiamondConfigurtion; import com.yuyuka.billiards.servic ...

Added by markanite on Tue, 01 Oct 2019 02:22:21 +0300