outputcache


.NET Ignite cache expiry policy not working


I am trying to set a global expiring policy to a Ignite cache but it doesn't work, all the entries are still there even after the timeout value.
This is how I am implementing it:
var igniteCache = this.igniteInstance.GetOrCreateCache<string, object>(configuraton);
var expiringTime = TimeSpan.FromSeconds(100);
igniteCache.WithExpiryPolicy(new ExpiryPolicy(expiringTime, expiringTime, expiringTime));
igniteCache.Put(key, value);
What am I doing wrong?
WithExpiryPolicy returns a new cache instance, you should use it to insert entries with expiration:
var igniteCacheExpiry = igniteCache.WithExpiryPolicy(new ExpiryPolicy(expiringTime, expiringTime, expiringTime));
igniteCacheExpiry.Put(key, value)

Related Links

.NET Ignite cache expiry policy not working
OutputCache not caching for the whole duration time

Categories

HOME
facebook-oauth
ng-idle
nvd3.js
wakanda
webdriver
jax-rs
sh
graphics
shiro
nsbundle
joomla3.0
performancepoint
qpython
fhir
zerobrane
parameter-passing
dynamic-sql
dimensional-modeling
connector
topology
replication
jquery-ias
href
imageresizer
mongoid6
monit
xcode-ui-testing
datastax-enterprise-graph
volatile
cognos-bi
biztalk-rule-engine
instantiation
keras-layer
browser-extension
processwire
dm-script
timing
android-softkeyboard
apache-directory
convex-optimization
google-cse
edit
android-testing
gpg-signature
pybrain
materialized-path-pattern
vulcanize
uicolor
mta
tooleap
nupic
jparsec
user-management
r-package
dllimport
flock
phonertc
typemock
ansi
matlab-deployment
ghcjs
rickshaw
rmysql
jama
ora-00904
lnk
authlogic
menubar
cfcache
rfc5322
windows-phone-8-sdk
cocoalibspotify-2.0
scringo
cnf
cascadingdropdown
android-loadermanager
onmousemove
sentestingkit
web-farm
xcode3.2
veracity
ilasm
urlrewriter
relative
filemerge
quotation-marks
tmx
easyb
linfu-dynamicproxy

Resources

Encrypt Message