Tags: glhd/bits
Tags
Fix CacheSequenceResolver for Redis with Compression & Serialization (#… …14) * Fix CacheSequenceResolver for Redis with Compression & Serialization Code is now compatible with Compression and Serialization enabled for Redis. The implementation is the same as Laravel used for RateLimiting using Redis. [src/Illuminate/Cache/RateLimiter.php](https://github.com/laravel/framework/blob/5d477f9a4080c1cdd43edd05ec4df61c738e0f8d/src/Illuminate/Cache/RateLimiter.php#L161) Without this change, I get this error when trying to create a snowflake ID: ``` InvalidArgumentException Sequences must be an integer between 0 and 4095 (got -1). ``` * Code style --------- Co-authored-by: Chris Morrell <inxilpro@users.noreply.github.com>
PreviousNext