Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

How does EasyCache work? #2

Open
Quix0r opened this issue Jul 9, 2018 · 0 comments
Open

How does EasyCache work? #2

Quix0r opened this issue Jul 9, 2018 · 0 comments

Comments

@Quix0r
Copy link

Quix0r commented Jul 9, 2018

Hi,

I wonder if I can simply use \Websanova\EasyCache\EasyCache; in my BaseModel class and then all models inheriting from that class have "transparent" caching enabled? My objection here is to reduce queries that are repeated all over again by "transparently" caching data (models).

And my models don't have id column, they have <model_name>_id. Example: my model Foo (table: foo) has a protected $primaryKey = 'foo_id'; set. Do I have to set $cacheBy in each model or does your implementation respect $primaryKey ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant