laragear / cachequery Goto Github PK
View Code? Open in Web Editor NEWRemember your query results using only one method. Yes, only one.
Home Page: https://patreon.com/packagesforlaravel
License: MIT License
Remember your query results using only one method. Yes, only one.
Home Page: https://patreon.com/packagesforlaravel
License: MIT License
8.1.3
9.17.0
Forget key programmatically with Facade
CacheQuery::forget('offer_details_distinct_quadro');
or
with artisan command thrown exception
Array to string exception
$arrayOption = Model::query()->cache(key: 'offer_details_distinct_quadro', ttl: now()->addHour())->distinct()->pluck('name', 'name')
ErrorException
Array to string conversion
at vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php:223
219▕ * @return bool
220▕ */
221▕ public function forget($key)
222▕ {
➜ 223▕ return (bool) $this->connection()->del($this->prefix.$key);
224▕ }
225▕
226▕ /**
227▕ * Remove all items from the cache.
+18 vendor frames
No, don't give priority to this
Dear Author,
This is a package that shines.
Can you please make it compatible with PHP 7.4 and Laravel 6+?
PHP 7.4
DB::table('user')->cache(30,'id_123')->get();
8.0.25, Ubuntu 20.04
PostgreSQL 13
9.37
The cache scope should also works with paginate()
The paginte() method returns TypeError, but if I change it to simplePaginate method all working fine.
$model = Example::query()->cache()->paginate();
{
"class": "TypeError",
"message": "Illuminate\\Database\\Query\\Builder::__construct(): Argument #1 ($connection) must be of type Illuminate\\Database\\ConnectionInterface, Laragear\\CacheQuery\\CacheAwareConnectionProxy given, called in /home/mp/htdocs/backend/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php on line 3482"
}
Would it be possible to add support for optionally using cache tags? So we can do things like:
Article::latest('published_at')->with('drafts')->take(5)->cache(key: 'latest_articles' tag: 'tenant_1')->get();
Cache::tags('tenant_1')->flush();
etc.
See above :)
8.1.2
No response
10.x
$this->assertPublishes()
should take also the origin file. There is no point of using this method if we can't ensure the origin and destination under a tag.
Above
//
No response
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.