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

How to use memcache on v8 ? #904

Closed
Pok4 opened this issue Nov 6, 2023 · 3 comments
Closed

How to use memcache on v8 ? #904

Pok4 opened this issue Nov 6, 2023 · 3 comments

Comments

@Pok4
Copy link

Pok4 commented Nov 6, 2023

What's your question ?

Now im using this configuration for files:

//PHP Fast Cache
use Phpfastcache\Helper\Psr16Adapter;
use Phpfastcache\Drivers\Files\Config as FilesConfig;
$cacher = new Psr16Adapter(empty($_SERVER['CACHE_TYPE']) ? 'files' : $_SERVER['CACHE_TYPE'],

new FilesConfig([
  'path' => __DIR__.'/cache',
  'secureFileManipulation' => true,
  'securityKey' => '_phpfastcache_', //dont change it, because deleting func about the cache from ACP
]));

Can you give me rewritten code to can use memcache ?

References (optional)

No response

Do you have anything more you want to share? (optional)

No response

@Geolim4
Copy link
Member

Geolim4 commented Nov 6, 2023

@Pok4
Copy link
Author

Pok4 commented Nov 6, 2023

Ok, and another question, how to delete the cache when im using memcache ?

@Geolim4
Copy link
Member

Geolim4 commented Nov 6, 2023

Read the PSR6 specifications:
https://www.php-fig.org/psr/psr-6/

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