This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
forked from judgedim/Cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade #1
Open
judgedim
wants to merge
62
commits into
BrightLocal:master
Choose a base branch
from
judgedim:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Upgrade #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added use statement for MemoryCacheException
…into benswinburne-fix-file-has
This was supported in 1.8, but missing in 2.0 Supports both the mongodb\mongodb library as the (legacy) mongo extension Differenes from 1.8: - Constructor takes db and/or collection as arguments - Use `_id` field rather than custom `key` field - Expired items are ignored rather than deleted (just like Mysqli) - Using upsert rather than delete + insert - Store TTL as date bson type to allow ttl index Includes unit tests. Usage guide is added to README. Fixes desarrolla2#25
APCU 5.x requires php7, therefor it pecl won't install it for version 5.x This causes Travis to fail without running any tests
Fix pecl issue on Travis
Create default backend object is nothing is supplied
Added Mongo support.
List the available methods. Fixes desarrolla2#29
List the available methods in README
Fixup for desarrolla2#30
Update README.md
Calling `getKey()` before passing the key to `getFileName()` from `getValueFromCache()` is not only unnecessary, it actually breaks caching if the prefix is not empty. I discovered this from a slightly different perspective: in my application I had to inherit from `Adapter/File` and override `getKey()` so that it applies `sha1()` to it as I frequently get cache keys with colons and other garbage in them. So as with a non-empty prefix, the key gets mutated in this instance, and then gets mutated yet again by the second `getKey()` call, so the lookup key is actually completely different.
Remove duplicate invocation of getKey() in File::getValueFromCache()
Expired ttl test give Ecxeption
All cache adapters follow PSR-16 Removed Memcache (only support memcached ext) Multi key get and set for supported adapters Rely on service TTL where possible, no additional checks Added FlatFile adapter for flat files. TTL is written in differnt file. Removed the PackTtlTrait Fixed NopPacker Added PhpPacker, only to be used with files Require all libs and extensions for development
Immutable Move PHP from packed to PhpFile implementation Multiple strategies for File cache Use external PSR-16 test suite PHP 7 only multiple for Mongo multiple for Predis clear for File and PhpFile Lots of fixes
Added class to using Trie directory structure
Moved options into trait Better abstraction choises
Run travis on PHP 7.3
Removing this from README.md [skip ci]
Fix tests for PHPFile cache
Fixed up name Added MongoDBBinaryPacker [skip ci]
…acker Fixes bug in JsonPacker
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.