I'm getting ` Session: Error while trying to free lock for ci_session` show up in the error log a couple times a minute, sometimes, and every 15 minutes other times. Using Redis for sessions. It's not happening on a different server that has almost the same code base and is sharing the same Redis server, albeit with a different session name. I'm using session_write_close() on every page as soon as I'm done handling sessions.

Member Avatar
Member Avatar
+0 forum 5

Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control > 5000) { // Flood control is over the rate limit print_json(array( 'status' => 'token_limit', 'error' => 'Rate limit exceeded: Please try your request again in a few minutes.', )); } else { // Record the request for flood control $CI->cache->increment("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); } From my understanding, when you increment a Redis …

Member Avatar
Member Avatar
+0 forum 5

I using Phpredis and am trying to get information from the following key called "statHistory" I am new to redis and not sure how to call each value individually. I am able to connect to redis using php and have tested it using the ping command. It has been two days of testing and I still cant get it to call properly. If anyone could point me in the right direction I would greatly appreciate it. Key Name: statHistory http://pastebin.com/pXz5d0zf image of redis-commander http://postimg.org/image/pusnghk9n/

Member Avatar
Member Avatar
+0 forum 1

I need to encode the sending messages/data(not MD5)and then they will be decoded on the other side. Codes have to be in android libraries not in java. Is there any code or information that may help me around internet? Thx all for your help.

Member Avatar
Member Avatar
+0 forum 1

Hi guys, i have an application that seats on a single webserver that depends on a third party application running mssql, so i use mssql over free tds. now i have to scale this site so i have to think about how to handle the sessions. i ma basically looking at using the db(mssql) which i think is going to be the slowest of my options. b) memcached, which i think is faster but i read something about loosing the data when u need to reboot a box and c) reddis which i just found out about. does anyone have …

Member Avatar
Member Avatar
+0 forum 1

The End.