Skip to content

Commit

Permalink
Merge branch 'release/v0.5.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Apr 26, 2024
2 parents 3468b3e + 28590ea commit 74c6d12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.5.5 (2024-04-26)
* Updated Archetype dependency

## v0.5.4 (2024-04-24)
* Updated Carbon dependency

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ By default, newly loaded caches use a generic Store implementation, however if y
namespace MyApp;

use DecodeLabs\Archetype;
use DecodeLabs\Archetype\Resolver\Extension as ArchetypeExtension;
use DecodeLabs\Stash\Store;
use DecodeLabs\Stash\Store\Generic;

Expand All @@ -147,9 +146,9 @@ class MyCache extends Generic
}
}

Archetype::register(new ArchetypeExtension(
Store::class, namespace::class
))
Archetype::map(Store::class, namespace::class);

$myCache = Stash::load('MyCache'); // Will now use MyApp\MyCache
```


Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require": {
"php": "^8.1",

"decodelabs/archetype": "^0.2.6",
"decodelabs/archetype": "^0.3",
"decodelabs/atlas": "^0.11.1",
"decodelabs/coercion": "^0.2.6",
"decodelabs/dictum": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Stash/Driver/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function getKeys(string $namespace): array
protected function getPathIndex(
string $pathKey
): int {
return (int)$this->client->get($pathKey);
return Coercion::toInt($this->client->get($pathKey));
}


Expand Down

0 comments on commit 74c6d12

Please sign in to comment.