Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify Redis Backend #11125

Closed
wants to merge 88 commits into from
Closed

Modify Redis Backend #11125

wants to merge 88 commits into from

Conversation

pantaovay
Copy link

Changes

  1. Modify cache redis backend, delete _PHCR
  2. Cache redis backend supports "redis" client option

Why

  1. The redis cache backend use a special key _PHCR to store all keys used by cache. There is a issue: why the backend cache redis add the special key(statsKey) _PHCR #10905 .According to @Green-Cat ,it is disabled in 2.0.x branch which is not true. If use _PHCR, every time we set a cache, we have to run sAdd and set commands. Store all keys in _PHCR will cause it expands quickly and this will influence performance.
  2. The libmemecached backend has supplied the option to disable this feature.
  3. The cache backend doesn't support redis option which means that we can not pass a redis connection. So if we use modelsCache and modelsMetadata, there will be two redis connections. So I modify this part and let redis option be supported, and through the lifetime of a request we can use one redis connection.

Andrew Mason and others added 30 commits April 21, 2015 23:49
Check array key exists before accessing. Support mysql double column types
Replaced strcmp with strcasecmp for checking image extenstions
*checkToken* function makes sure that tokenKey exists in session if not provide


Added a utility function *destroyToken to be used when checkToken
returns true

Added a 3rd variable to *checkToken*
destroyIfValid, which removes token key and value from session

Moved token key and value session ids as protected properties
defined returnValue variable
 isLegacyHash should return TRUE if the provided hash is not a bcrypt hash (instead of false)

No need for first argument password, since only hash is checked
Updated security.zep with fixes and new functionality
Revert "Updated security.zep with fixes and new functionality"
Fixed checking case insensitive image extensions
Revert "Fixed checking case insensitive image extensions"
[2.0.x] Fix "Wrong number of parameters" collection manager
Revert "[2.0.x] Fix "Wrong number of parameters" collection manager"
@pantaovay pantaovay mentioned this pull request Nov 12, 2015
@pantaovay
Copy link
Author

@sergeyklay

@sergeyklay
Copy link
Contributor

Could you please submit just the commits that belong to the PR?

@pantaovay pantaovay closed this Nov 16, 2015
@pantaovay pantaovay deleted the 2.0.x branch November 16, 2015 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.