-
Redis server went away
< H1 > 1. Problem description < H1 >
No error is reported when the command line runs, and: redis server went away error occurs in the form of browser access server script
< H1 > Test Code: < H1 >
:
< H1 > problem speculation < H1 >
1.php-redi...
-
What is the difference between Redis queues and message queues?
recently I saw an article https: codeshelper.com a 11. with two sentences like this:
lpush+rpop=Queue()
lpush+brpop=Message Queue
suddenly don t understand the similarities and differences between redis queues and redis message queues? What scenari...
-
Redis enables rdb persistence Why can't I update rdb files?
I am a win7 system and successfully installed redis,. Now I have configured in the configuration file.
save 900 1
save 300 10
save 60 10000
rdb persistence is supposed to be enabled, but after set and get operations, the file has not been up...
-
Implementation of non-repetitive queues with redis
redis queue lpush rpush inserts the queue without judging the repetition, how to avoid inserting some repetitions? redis has a collection that does not allow repetition. How can the two of them be implemented together? ...
-
Can the method redis- > lPush get the return value?
Can the redis- > lPush method get a return value? printed it and seemed to have nothing
$id = $this->post( id );
$info = $this->PushModel->getPush($id);
if(empty($info)){
$this->js...
-
Thinkphp Redis problem
think-queue; is used in TP5, but when enabled, the Redis extension is not installed! but my extension does have
I don t know why? Solve it! there s nothing wrong with the environment variable!
...
-
How does redis start in the background?
I ve read a lot about changing the daemonize in redis.conf to yes , but I don t see where this item is. solve.
...
-
Questions about the atomicity Test of redis
I know that a single operation of redis is atomic, and multiple operations on redis in the code will not guarantee the atomicity of the entire operation flow.
for example, in the following code, assuming that the value of nums key is 50 and 1000 visit...
-
Php7 32-bit uses hGetAll function browser to report Provisional headers are shown?
windows7 s environment built with wamp
$key = $this->resetkey($key);
$this->redis->hSet( g , d , t );
print_r($this->redis->hGetAll( g ));exit;
if($field== * || $field== ){
return $thi...
-
How to use redis? in the callback function when publishing subscriptions
after each subscription to the content, the Redis object is released, and after processing the subscription information, the Redis is connected again.
is that so?
how to use redis? in callback function
...
-
Redis locking problem
while (! $lock) {
$lock = Redis::set( lock .$id, $random, nx , ex , $ttl);
}
I want to throw an exception at the timeout I specified in this sentence.
...
-
About Redis expired key deletion Policy
there are three ways for Redis key to expire:
passive deletion: when reading writing an expired key, a lazy delete policy is triggered to delete the expired key directly.
active deletion: since the lazy deletion policy cannot guarantee that cold d...
-
Redis queue data in Laravel is not consumed
write a production and consumption program for redis queue in laravel
execute the consumption command, specifying that the connection connection and queue queue name can be consumed normally, but not without specifying the queue name. Why? Shouldn t ...
-
The Redis connection is not released after PHP starts the PHP script with shell_exec
< H2 > problem description < H2 >
there are two PHP scripts, start.php and processes2.php , both of which connect to the same Redis .
execute procedure: assume that the number of connections to redis at this time is 0. I used redis-cli info...
-
How to use redis in online examination system?
thinkphp+mysql+redis, is used in the background to arrange on-site exams every period of time, about 100 people. At ordinary times, 3000 people will take mock exam training.
my idea: formal examination, give out 100 sets of papers, except that there a...
-
Timeout release problem of swoole Cooperative redis connection Pool
use the redis, of the swoole protocol and then implement the connection pool by yourself (just a yii2-swoole written by a big god), which is stored in SplQueue, but I found that after the connection is inside, when it is idle for a long time, these conne...
-
Why are the values added by redis zadd serialized
getting it through php code will always be serialized
127.0.0.1:6379> ZRANGE key 0 -1 WITHSCORES
1) "i:1;"
2) "1"
3) "s:6: "google ";"
4) "1"
5) "i:4;"
6) "2"
7) "s:4: &q...
-
Discussion on redis problem
discuss a few questions, thank you!
1 the working principle of aof storage is used by Magi Redis?
2 how does aof rewrite work? In which processes the main thread and the generated new thread play a role respectively.
...