jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Rodríguez Lasterra" <laste...@javahispano.org>
Subject null values/hasKey??
Date Sun, 24 Sep 2006 23:06:26 GMT
Hi all, maybe this is an stupid question, but i'm starting with JCS.

I want to put null values in the cache, and then ask if the key exist or not.

cacheAccess.put("key",null);
cacheAccess.get("key")==null
cacheAccess.get("non-existence-key")==null

is there any way to know if one key exists? Somthing like
cacheAccess.hasKey("key)::boolean

Regards, Enrique.

-- 
_______________________________
Enrique Rodriguez Lasterra
lasterra AT javahispano DOT org
http://www.javahispano.org
Asociación sin ánimo de lucro sobre java
Spanish non profit association about java

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message