File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -317,10 +317,6 @@ Cache::make()->ttl(fn () => 10);
317317
318318Cache::make()->ttl(Carbon::now()->addDay());
319319Cache::make()->ttl(new DateTime('tomorrow'));
320-
321- Cache::make()->ttl(Ttl::DAY);
322- Cache::make()->ttl(Ttl::WEEK);
323- Cache::make()->ttl(Ttl::MONTH);
324320```
325321
326322##### As Seconds
Original file line number Diff line number Diff line change @@ -30,3 +30,9 @@ This means that the `DragonCode\Contracts\*` contracts will no longer be working
3030### Replaces Namespaces
3131
3232- ` DragonCode\Contracts\Support\Arrayable ` replace with ` Illuminate\Contracts\Support\Arrayable `
33+
34+ ## Low Impact Changes
35+
36+ ### TTL Time Constants
37+
38+ Constants ` DAY ` , ` MONTH ` and ` WEEK ` was deleted from ` DragonCode\Cache\Support\Ttl ` class.
Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ class Ttl
1818 use Call;
1919 use Has;
2020
21- /** @deprecated */
22- public const DAY = 60 * 24 ;
23-
24- public const MONTH = 60 * 24 * 30 ;
25- public const WEEK = 60 * 24 * 7 ;
26-
2721 protected int $ default = 3600 ;
2822
2923 public function fromMinutes ($ minutes ): int
You can’t perform that action at this time.
0 commit comments