放入缓存
@param key 键
@param value 值
@return 值
500084
public V put(K key, V value){
		writeLock.lock();
		try {
			cache.put(key, value);
		} finally {
			writeLock.unlock();
		}
		return value;
	}
58406
public T add(String key, T value) {
        wlock.lock();
        try {
            return map.put(key, value);
        } finally {
            wlock.unlock();
        }
    }
121800
public void add(String key, String value)
    {
        if(key == null)
            throw new IllegalArgumentException("Null keys not allowed.");

        if(value == null)
            throw new IllegalArgumentException("Null values not allowed.");

        List<String> vals = map.get(key);
        if(vals == null)
        {
            vals = new ArrayList<String>();
            map.put(key,vals);
        }

        vals.add(value);
    }
282005
public Object get(Object key)
    {
        if (key==null)
            return _nullValue;
        if (key instanceof String)
            return get((String)key);
        return get(key.toString());
    }
686164
public Request query(String key, Object value) {
        this.query.put(key, value);
        return this;
    }
1262959
public static final <K, V> Map<K, V> map(K key, V value) {
        Map<K, V> map = new HashMap<>();
        map.put(key, value);
        return map;
    }
357661
public static Map<String, Object> newMap(String key, Object value) {
        final Map<String, Object> result = newMap();
        result.put(key, value);
        return result;
    }
457819
public T put(String key, T value) {
		return container.put(key, value);
	}
1099959
public void put(String key, String value) {
        if (validCharacters(key) && validCharacters(value)) {
            this.values.put(key, value);
        }
    }
45218
public T putCache(String key, T value) {
		return cache.put(key, value);
	}
155063
public JSONNavi<T> set(String key, int value) {
		return set(key, Integer.valueOf(value));
	}
573951
public static @Nonnull Entry<String,JsonElement> field(String key, Object value) {
        return field(key, fromObject(value));
    }
204137
public QueryParameters updateValue(String key, Object value) {
        this.values.put(processKey(key), value);

        return this;
    }
1297134
public static String generateQuery(final String key, final Object value) {
		final Map<String, Object> params = new HashMap<>();
		params.put(key, value);
		return generateQuery(params);
	}
111012
public static QueryRequest query(String key, Object value) {
        return QueryRequest.create().addParameter(key, value);
    }
181458
@Override
  public String set(final byte[] key, final byte[] value) {
    checkIsInMultiOrPipeline();
    client.set(key, value);
    return client.getStatusCodeReply();
  }
922973
public B set(String key, Object value) {
        data.put(key, Objects.requireNonNull(value));
        return (B) this;
    }