The TP5 framework uses redis cache, which is explained in detail

When you're lonely, you'll be accompanied by a dog 2022-02-13 06:25:47 阅读数:730

tp5 tp framework uses redis

1. Xiaopi configuration download redis Environmental Science

1. Open Xiaopi Software , Select software management to find redis download ,

2. Find the website domain name , Click manage to select PHP Expand , Choose redis

3. Start on the home page redis, And view the configuration

Usually we start in a small skin redis after , Check whether the configuration parameters are correct , Passwords are generally not set ,IP The address is local IP:

127.0.0.1 Port number :6379;

2,tp5 Frame configuration redis

1. open tp5 The official manual , Under cache, find using multiple cache types

Paste the following code into tp frame config The following cache settings

// Switch to redis operation
Cache::store('redis')->set('name','value');

copyright:author[When you're lonely, you'll be accompanied by a dog],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130625432455.html