transcoder.java

来自「memcached JAVA客户端API,应用广泛,运行比较稳定。」· Java 代码 · 共 29 行

JAVA
29
字号
// Copyright (c) 2006  Dustin Sallings <dustin@spy.net>package net.spy.memcached.transcoders;import net.spy.memcached.CachedData;/** * Transcoder is an interface for classes that convert between byte arrays and * objects for storage in the cache. */public interface Transcoder<T> {	/**	 * Encode the given object for storage.	 *	 * @param o the object	 * @return the CachedData representing what should be sent	 */	CachedData encode(T o);	/**	 * Decode the cached object into the object it represents.	 *	 * @param d the data	 * @return the return value	 */	T decode(CachedData d);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?