Skip to content

Commit

Permalink
- add apcu cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEssex committed Feb 5, 2021
1 parent 4beef28 commit 1d1f793
Show file tree
Hide file tree
Showing 7 changed files with 1,262 additions and 691 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# file-cache
# Cache

Different caching implementations based of PSR-16.


## File Cache
Simple file cache that will store the files in the root of the project folder.
Can be customised.

## APCU Cache
Simple APCU Cache that can be used to store the cached object in APCU


### TODO
Implement multiple functions.
47 changes: 29 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
{
"name": "mressex/file-cache",
"authors": [
{
"name": "Kyle Essex"
}
],
"require": {
"phpunit/phpunit": "^9.2",
"psr/simple-cache": "^1.0"
"name": "mressex/cache",
"type": "library",
"description": "Different PSR-16 cache implementations ",
"keywords": [
"Cache",
"Caching"
],
"license": "MIT",
"authors": [
{
"name": "Kyle Essex"
}
,
"require-dev": {
"roave/security-advisories": "dev-master"
},
"autoload": {
"psr-4": {
"MrEssex\\FileCache\\": "src",
"MrEssex\\FileCache\\Tests\\": "tests"
}
],
"require": {
"php": "^7.4",
"ext-apcu": "*",
"phpunit/phpunit": "^9.5.2",
"psr/simple-cache": "^1.0"
},
"provide": {
"psr/simple-cache-implementation": "^1.0"
},
"require-dev": {
"roave/security-advisories": "dev-master"
},
"autoload": {
"psr-4": {
"MrEssex\\FileCache\\": "src",
"MrEssex\\FileCache\\Tests\\": "tests"
}
}
}
Loading

0 comments on commit 1d1f793

Please sign in to comment.