Commit Graph

41 Commits (master)

Author SHA1 Message Date
Malo Pichot b3e1f084d4
Use dbindex when connection is persistent
(cherry picked from commit 503bac1a202910b440ce86baa55e7ae342368106)
2021-12-24 00:34:34 +02:00
Malo Pichot 3d7d054ae9
Corrects deprecated Redis functions
(cherry picked from commit 5a2f25fbac87c5036304328c77e2036b617cb614)
2021-12-24 00:34:34 +02:00
Malo Pichot 67d5daef98
Depends on shardj/zf1-future, PHP 7.3 compatibility
(cherry picked from commit 46d13d3493e94564b0fea530f9fb687c95a5b275)
2021-12-24 00:34:31 +02:00
Andriy Kushnir (Orhideous) b471f423b7
Switch underlying dependency to maintained one 2021-12-23 23:28:09 +02:00
Andriy Kushnir (Orhideous) c1c0ba0f01
Omit redundant require_once 2018-12-12 20:58:09 +02:00
Andriy Kushnir (Orhideous) 914bbe7589
Fix license identifier to valid SPDX 2018-12-12 12:31:30 +02:00
Andriy Kushnir (Orhideous) 8512c588c1
Fix inconsistent returns 2018-12-12 12:25:54 +02:00
Andriy Kushnir (Orhideous) aa48eb65d2
Invoke sInter with varargs instead of single array 2018-12-12 12:25:32 +02:00
Andriy Kushnir (Orhideous) 22bd519248
Fixed typo in _touchKey 2018-12-12 12:22:33 +02:00
Andriy Kushnir (Orhideous) b2f18012b4
Minor phpdoc fixes 2018-12-12 12:17:30 +02:00
Andriy Kushnir (Orhideous) c6c2957e5f
Require only zf1/zend-cache instead of entire zendframework1 2018-12-12 12:13:57 +02:00
Carl Oscar Aaro f26a5e81cb Moved default values for auth to server list to avoid notices 2017-07-07 09:14:26 +02:00
Carl Oscar Aaro 566890409f Merge pull request #9 from silasrm/master
Add support to authentication
2017-07-07 09:09:13 +02:00
Silas Ribas Martins 11dcacd3ce Change auth config to per server 2017-06-28 13:34:00 -03:00
Silas Ribas Martins e3ffe29525 Update documentation with persistent, key_prefix and auths keys configurations 2017-06-27 00:38:08 -03:00
Silas Ribas Martins e69f79d39c Add support to authentication 2017-06-27 00:34:50 -03:00
Carl Oscar Aaro b24686fa6f Merge pull request #7 from ActiveBuilding/master
Various fixes and cleanup
2017-01-25 13:22:56 +01:00
Chris Petersen 9cb2ab74e7 clean() should delete items not tags
No need to flush the tags
2014-07-01 16:14:21 -07:00
Chris Petersen 68f180b546 use strict comparison when checking false return value 2014-06-27 16:42:07 -07:00
Chris Petersen facc56811b remove hardReset parameter
When removing a key, you should always remove the key, not only its
associated tags.  Removing this parameter and changing functionality
to act as if it was always set to true also makes this method behave
like the Memcached backend, which should be what most users are
accustomed to.
2013-11-21 15:35:57 -08:00
Chris Petersen 068785a114 Remove extra code -- Redis#multi() always succeeds
Also removes unused transactionBegin() and transactionEnd() methods
2013-11-12 15:52:10 -08:00
Chris Petersen ac06f3df80 Improve efficiency of tag-related calls in set()
- Code grouped better to reduce the number of loops
- Add documentation
- Remove a couple of extraneous redis calls
2013-11-12 15:41:22 -08:00
Chris Petersen 8f46a88aca Add a couple variables to avoid a bunch of method calls 2013-11-12 14:04:08 -08:00
Chris Petersen c03520cdd8 Remove unreferenced variables 2013-11-12 14:00:40 -08:00
Chris Petersen 6f3d383e0a Minor cleanup (fix typo) 2013-11-12 14:00:24 -08:00
Chris Petersen bf429c5f81 No need to test cache validity with Redis
Redis GET behaves like "test cache validity" is on, so don't bother
doing an extra check for a redundant return value.
2013-11-12 13:59:18 -08:00
Chris Petersen 7c8945ce2f Fixes to make no-tags save() work better
- Fix bug where $tags would never be empty (always triggering the heavier has-tags code)
- No need to create an item tags record for non-tagged items (saves a little network overhead)
2013-11-12 12:14:40 -08:00
Chris Petersen b60e0363b5 Add composer.json 2013-11-12 12:14:40 -08:00
Carl Oscar Aaro 65bdfa098a Added the New BSD License 2013-10-03 19:52:14 +02:00
Carl Oscar Aaro e47b3d4a91 Should be able to save even though transaction mode is failing. 2013-01-14 12:02:28 +01:00
Carl Oscar Aaro 4e1002dbad Fixed typo, load instead of save in load example. :) 2013-01-14 12:01:59 +01:00
Carl Oscar Aaro 3be089b761 Public functions to set Redis in transaction mode and execute the transaction. 2012-10-29 19:39:52 +01:00
Carl Oscar Aaro 2feeb88cf5 Default DB index set to 0 instead of 1. 2012-10-29 17:54:53 +01:00
Carl Oscar Aaro 4ee458d0a0 Support for TTL on tags too so the Redis database won't be cluttered with lots of unused tags. 2012-10-29 17:18:03 +01:00
Carl Oscar Aaro e480cdd21e New development. Added functions and fixes error on clean cache using flushAll instead of flushDb. 2012-10-24 20:40:46 +02:00
Carl Oscar Aaro e2962f6a0b Hard reset keys 2012-10-09 20:36:55 +02:00
Carl Oscar Aaro cc0d484352 Return falls on calls if Redis instance is unavailable. 2012-10-09 20:36:45 +02:00
Carl Oscar Aaro 03f4eebe3e isConnected status 2012-10-09 20:36:15 +02:00
Carl Oscar Aaro e3b4ba7ba0 isConnected status 2012-10-09 20:36:02 +02:00
Carl Oscar Aaro 43443338ad Documentation. 2012-10-09 14:26:27 +02:00
Carl Oscar Aaro 034446df1f Redis cache backend for Zend Framework 2012-10-09 14:01:18 +02:00