Comments (3)
I agree. I would recommend a change to JSON, to allow cross-language support for the same cache source.
OpCode is a pain with PHP "data" files.
We should do some benchmarking to figure out whether OpCache or APC really saves that much time with regards to the PHP data file (Also we can't even use OpCache for the files anyway due its "caching the cache"). If not, then it's safer to avoid using PHP and use another data storage file format.
from stash.
I'm not going to lie, this isn't something I'm going to have a lot of time to work on. If one of you guys wanted to make the pull request I would be happy to look at it, and based off of what you've said so far I won't have any issues approving it.
from stash.
So I've got a pull request together that somewhat solves this. I tried going with JSON but was receiving way too many errors with data integrity. Admittedly this was mostly with larger numbers that people are unlikely to encounter in most cases, but for now I'm settling on the php serialization functions as alternative to php source files.
This update also creates a new interface and the ability to inject Encoder classes into the FileSystem driver in case people want to do custom back ends, which should handle your suggested use cases pretty well @gggeek.
from stash.
Related Issues (20)
- What about aliases?
- php.ini settings
- Driver Memcache "clear" = "inc" ? HOT 2
- Warning from filesystem driver: mkdir(): File exists in /data/www/wrbm/corporate/prod/vendor/tedivm/stash/src/Stash/Driver/FileSystem.php on line 234 HOT 5
- Stash Issue with Concrete5? HOT 4
- lock method creates empty folder
- class_exists() calls in APC class may trigger fatal errors
- Cached instances of objects can be altered outside of Stash HOT 3
- Redis items aren't really deleted? HOT 1
- How to disable stashcache throughout project HOT 1
- Filedriver cannot save the cache with expiration time of less than 40 seconds HOT 1
- Filedriver purge didn't work in docker HOT 2
- Function Redis::delete() is deprecated HOT 4
- Password is not global entity, it should be available in each servers for redis
- PHP 8.0 support HOT 1
- Enhance PHP 8 compatibility HOT 2
- SQLite PDO driver does not honor file permissions HOT 1
- [Redis] Option to authenticate using name and password HOT 1
- Union type declaration in Session.php is available as of PHP 8.0.0 HOT 1
- Query wildcard syntax? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stash.