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

File count limits? #15

Open
heathdutton opened this issue Jul 10, 2019 · 3 comments
Open

File count limits? #15

heathdutton opened this issue Jul 10, 2019 · 3 comments

Comments

@heathdutton
Copy link

I noticed that unlike the File cache, there is no folder structure created for the files. Does this mean there may be an IO overhead when caching millions of key/value pairs?

@elcobvg
Copy link
Owner

elcobvg commented Jul 10, 2019

There are no files, it's an in-memory cache

@heathdutton
Copy link
Author

heathdutton commented Jul 11, 2019

Uhm... what? This library works by creating files that the opcache engine can load into memory. Similar to other cache engines used in Symfony. These files look like this:

Screen Shot 2019-07-10 at 9 42 13 PM

My concern is that they are all at a single folder level.

@elcobvg
Copy link
Owner

elcobvg commented Jul 11, 2019

You're right. Though as you say, the files are loaded into memory. If you are dealing with millions of key/value pairs which won't all fit in available memory, there might be IO overhead to consider. I have never tested that, though. Creating subfolders might help, but I have very little time to work on any open source stuff at the moment.

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

No branches or pull requests

2 participants