linioit / cache Goto Github PK
View Code? Open in Web Editor NEWProvides a multi-layered caching abstraction
License: BSD 3-Clause "New" or "Revised" License
Provides a multi-layered caching abstraction
License: BSD 3-Clause "New" or "Revised" License
There are instances where calling set returns null instead of a boolean & a TypeError: Return value of Double\Linio\Component\Cache\CacheService\P1::set() must be of the type boolean, null returned
is thrown.
Either the docs need to be changed, or before https://github.com/LinioIT/cache/blob/master/src/Adapter/PhpredisAdapter.php#L141 we need to do a null coalesce and set $params['timeout'] = $params['timeout'] ?? 0;
By default Redis should not require a ttl because not every key needs to expire. The default of 0 is also invalid and causes Predis to throw an exception.
The get()
method for CacheService
is missing a return type. Because of this, PhpStorm is stating it is a void return type.
Due to the fact that it is a mixed return type, a docblock with @return mixed
is needed. When looking at this, the EncoderInterface
is also missing the return type.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.