Skip to content

Commit

Permalink
Fix unserialize() error when using Redis as cache (#30)
Browse files Browse the repository at this point in the history
* Fix unserialize(): Error at offset when using Redis as cache

Using the key `disposable_email.domains` in Redis throw an error `unserialize(): Error at offset XYZ of XYZ bytes`, Redis cannot unserialize keys with dot notation. I think is better to replace the key with underscore so it works in most cache drivers.

* Update disposable-email.php

Co-authored-by: Propaganistas <[email protected]>
  • Loading branch information
kitro and Propaganistas authored Mar 13, 2022
1 parent dbd1510 commit 4b7b40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/disposable-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'cache' => [
'enabled' => true,
'store' => 'default',
'key' => 'disposable_email.domains',
'key' => 'disposable_email:domains',
],

];

0 comments on commit 4b7b40a

Please sign in to comment.