Reputation: 1
I have an empty cache configured with readthrough connected to MySql. can I use SqlFieldsQuery without explicitly call cache.LoadCache? Can I populate the cache using cache.put instead of populating it using cache.LoadCache and still get results using SqlFieldsQuery? Looking into the cache I can see the elements inserted but cursor returns empty (when using cache.LoadCache SqlFieldsQuery /cursor works and returns results for the same exact query)
Upvotes: 0
Views: 65
Reputation: 8986
can I use SqlFieldsQuery without explicitly call cache.LoadCache
No, SQL queries can not perform read-through, only individual key-based operations can (cache.Get
).
Can I populate the cache using cache.put instead of populating it using cache.LoadCache and still get results using SqlFieldsQuery?
Yes.
Upvotes: 1