/** * add the given value with specified size to the cache at specified key * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being added * * This function is suitable for multi-valued keys. */ public void add(Object key, Object value, int size) { int hashCode = hash(key); _put(hashCode, key, value, size, true); }
/** * add the given value to the cache at the specified key * @param key lookup key * @param object item value to be stored */ public void add(Object key, Object value) { int hashCode = hash(key); _put(hashCode, key, value, -1, true); }
/** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being cached * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value, int size) { int hashCode = hash(key); return _put(hashCode, key, value, size, false); }
/** /** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value) { int hashCode = hash(key); return _put(hashCode, key, value, -1, false); }
/** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being cached * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value, int size) { int hashCode = hash(key); return _put(hashCode, key, value, size, false); }
/** * add the given value to the cache at the specified key * @param key lookup key * @param object item value to be stored */ public void add(Object key, Object value) { int hashCode = hash(key); _put(hashCode, key, value, -1, true); }
/** /** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value) { int hashCode = hash(key); return _put(hashCode, key, value, -1, false); }
/** * add the given value to the cache at the specified key * @param key lookup key * @param object item value to be stored */ public void add(Object key, Object value) { int hashCode = hash(key); _put(hashCode, key, value, -1, true); }
/** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being cached * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value, int size) { int hashCode = hash(key); return _put(hashCode, key, value, size, false); }
/** * add the given value to the cache at the specified key * @param key lookup key * @param object item value to be stored */ public void add(Object key, Object value) { int hashCode = hash(key); _put(hashCode, key, value, -1, true); }
/** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being cached * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value, int size) { int hashCode = hash(key); return _put(hashCode, key, value, size, false); }
/** * add the given value with specified size to the cache at specified key * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being added * * This function is suitable for multi-valued keys. */ public void add(Object key, Object value, int size) { int hashCode = hash(key); _put(hashCode, key, value, size, true); }
/** /** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value) { int hashCode = hash(key); return _put(hashCode, key, value, -1, false); }
/** * add the given value with specified size to the cache at specified key * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being added * * This function is suitable for multi-valued keys. */ public void add(Object key, Object value, int size) { int hashCode = hash(key); _put(hashCode, key, value, size, true); }
/** * add the given value with specified size to the cache at specified key * @param key lookup key * @param object item value to be stored * @param size in bytes of the value being added * * This function is suitable for multi-valued keys. */ public void add(Object key, Object value, int size) { int hashCode = hash(key); _put(hashCode, key, value, size, true); }
/** /** * cache the given value at the specified key and return previous value * @param key lookup key * @param object item value to be stored * @returns the previous item stored at the key; null if not found. */ public Object put(Object key, Object value) { int hashCode = hash(key); return _put(hashCode, key, value, -1, false); }