I created cache in this way.
CreatedExpiryPolicy cep = new CreatedExpiryPolicy(new
Duration(TimeUnit.SECONDS, 10));
CacheConfiguration C_CONFIG = new CacheConfiguration();
C_CONFIG.setName("temp");
IgniteCache cache = ignite.getOrCreateCache(C_CONFIG);
cache = cache.withExpiryPolicy(cep);
Now using "cache" object, I insert
cache.put("key","value");
This inserts fine with expiry.
But when I try to get datastreamer from already created cache above and try
to insert K-V's.. For that data, policy is not being set and I know this
setting of expiry is on the fly. But by default, we don't want any expriy to
set for the cache. We want it on the fly. And I didn't find any where how to
set expiry for data streamers for existing cache.
Can anyone please help?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/