You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependency aware repository is hooked up automatically and will be returned when using the `Cache` Facade.
21
21
22
-
This package also provides a `\Craft\DependencyAwareCache\Facades\DependencyCache` Facade which extends the default `Cache` Facade but provides updated docblocks.
22
+
This package also provides a `\CraftCms\DependencyAwareCache\Facades\DependencyCache` Facade which extends the default `Cache` Facade but provides updated docblocks.
23
23
24
24
```php
25
25
use Illuminate\Support\Facades\Cache;
26
-
use Craft\DependencyAwareCache\Facades\DependencyCache;
26
+
use CraftCms\DependencyAwareCache\Facades\DependencyCache;
-`Craft\DependencyAwareCache\Dependency\CallbackDependency` - invalidates when the result of a callback changes.
58
-
-`Craft\DependencyAwareCache\Dependency\FileDependency` - invalidates the cache based on file modification time.
59
-
-`Craft\DependencyAwareCache\Dependency\ValueDependency` - invalidates the cache when specified value changes.
57
+
-`CallbackDependency` - invalidates when the result of a callback changes.
58
+
-`FileDependency` - invalidates the cache based on file modification time.
59
+
-`ValueDependency` - invalidates the cache when specified value changes.
60
60
61
-
- You may combine multiple dependencies using `Craft\DependencyAwareCache\Dependency\AnyDependency` or `Craft\DependencyAwareCache\Dependency\AllDependencies`.
61
+
- You may combine multiple dependencies using `AnyDependency` or `AllDependencies`.
62
62
63
-
You can implement your own dependency by extending `Craft\DependencyAwareCache\Dependency\Dependency`.
63
+
You can implement your own dependency by extending `Dependency`.
0 commit comments