diff --git a/README.md b/README.md index 754f065..40eaba0 100644 --- a/README.md +++ b/README.md @@ -317,10 +317,6 @@ Cache::make()->ttl(fn () => 10); Cache::make()->ttl(Carbon::now()->addDay()); Cache::make()->ttl(new DateTime('tomorrow')); - -Cache::make()->ttl(Ttl::DAY); -Cache::make()->ttl(Ttl::WEEK); -Cache::make()->ttl(Ttl::MONTH); ``` ##### As Seconds diff --git a/UPGRADE.md b/UPGRADE.md index 258741c..b3374dc 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -30,3 +30,9 @@ This means that the `DragonCode\Contracts\*` contracts will no longer be working ### Replaces Namespaces - `DragonCode\Contracts\Support\Arrayable` replace with `Illuminate\Contracts\Support\Arrayable` + +## Low Impact Changes + +### TTL Time Constants + +Constants `DAY`, `MONTH` and `WEEK` was deleted from `DragonCode\Cache\Support\Ttl` class. diff --git a/src/Support/Ttl.php b/src/Support/Ttl.php index fc0bdf0..2f1e811 100644 --- a/src/Support/Ttl.php +++ b/src/Support/Ttl.php @@ -18,12 +18,6 @@ class Ttl use Call; use Has; - /** @deprecated */ - public const DAY = 60 * 24; - - public const MONTH = 60 * 24 * 30; - public const WEEK = 60 * 24 * 7; - protected int $default = 3600; public function fromMinutes($minutes): int