Hi,

I want to get continuous updates of the value of a certain key on a certain 
cache, so I thought of a continuous query based on an initial query like this:

SELECT _value from CACHE where _key=KEY

Questions:

- is this possible with this syntax?

- is this an SQL Query (the initial query I mean)?

- does it need any configuration added on the cacheConfiguration?

I added setIndexedTypes(String,Object) since String is the key type.

I however get: "CacheException: Failed to find SQL table for type: String".


Another way to get a stream of updates on a key is to listen to cache events, 
however that is listening to all the caches. Even listening locally (since we 
are listening to a replicated cache updates and a low writes one), it would 
still be listening to a lot of updates just for a small fraction of them.


What would be other alternatives, to get a stream of updates on a key?


Thank you


Met vriendelijke groeten / Meilleures salutations / Best regards


Nicolae Marasoiu
Agile Developer

[http://signature.cegeka.com/2016/stripe-small.jpg]


E  [email protected]<mailto:[email protected]>


[http://signature.cegeka.com/2016/stripe-large.jpg]


[http://signature.cegeka.com/2016/logo.jpg]     CEGEKA 15-17 Ion Mihalache 
Blvd. Tower Center Building, 4th,5th,6th,8th,9th fl
RO-011171 Bucharest (RO), Romania
T +40 21 336 20 65
WWW.CEGEKA.COM<http://www.cegeka.com>   [LinkedIn]  
<https://www.linkedin.com/company/cegeka-romania>


Reply via email to