Skip to content

Redis/Predis "prefix" option #627

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

Closed
frumbert opened this issue Jul 3, 2018 · 4 comments
Closed

Redis/Predis "prefix" option #627

frumbert opened this issue Jul 3, 2018 · 4 comments

Comments

@frumbert
Copy link

frumbert commented Jul 3, 2018

  • PhpFastCache version: getPhpFastCacheVersion not found.
  • PhpFastCache API version: 1.2.5
  • PHP version: 7.0.30
  • Operating system: mscos 10.13.5 / debian 9

My question

Can I set a prefix on the redis driver (Redis::OPT_PREFIX). Is this possible in V7 ? I

@Geolim4
Copy link
Member

Geolim4 commented Jul 3, 2018

Yes and no...

This is natively not possible but as of the v7 you can provide your own Redis client:
https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV4%CB%96%5D-Configuration-Options#redispredis-specific-options

So in the meantime that I add the support for this option you can make use of your own Redis client.

Cheers,
Georges

@frumbert
Copy link
Author

frumbert commented Jul 3, 2018

Ok, I'll have to look into the new version then. It's probably just as much work to refactor my apps to keep up to date than it is to hacky-workaround the prefix problem I'm having.

@Geolim4
Copy link
Member

Geolim4 commented Jul 3, 2018

I'm re-opening this issue to work on this for the 7.0.2 ;)

@Geolim4 Geolim4 changed the title Redis driver options? Redis/Predis "prefix" options Jul 3, 2018
@Geolim4 Geolim4 changed the title Redis/Predis "prefix" options Redis/Predis "prefix" option Jul 3, 2018
Geolim4 added a commit to Geolim4/phpfastcache that referenced this issue Jul 3, 2018
@Geolim4 Geolim4 mentioned this issue Jul 3, 2018
6 tasks
Geolim4 added a commit that referenced this issue Jul 3, 2018
@Geolim4
Copy link
Member

Geolim4 commented Jul 3, 2018

The option "optPrefix" has been added and will be available as of the 7.0.2 comes out (in a couple of weeks or less).

Thanks @frumbert
Cheers,
Georges.L

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants