lib/ehcache/element.rb in jruby-ehcache-1.0.0 vs lib/ehcache/element.rb in jruby-ehcache-1.1.0
- old
+ new
@@ -12,6 +12,11 @@
alias tti getTimeToIdle
alias ttl getTimeToLive
alias tti= setTimeToIdle
alias ttl= setTimeToLive
+
+ alias expires_in getTimeToLive
+ def expires_in(seconds)
+ setTimeToLive(seconds.to_i)
+ end
end