Relation Cache

In this video we explain the basics of Cache in the context of a relation

Cached = true 

Will cache relations results that are based on a unique query (id=7 etc...) and were found in the database. If the query did not return a result, it'll not be cached. (for example id=0)

CacheEmptyResults = true 

Will also cache queries that did not return any value

CacheNonUniqueResults = true 

Will also cache the result of non unique queries (id<10 etc...)

If you want to set them all in one go, add the following code to the Entity class in ENV

public bool CacheAll
{
  set
  {
    Cached = value;
    CacheEmptyResults = value;
    CacheNonUniqueResults = value
  }
} 

And then use it :

CacheAll = true 


Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com