mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 10:29:56 +08:00
16 lines
250 B
Java
16 lines
250 B
Java
|
|
/**
|
|||
|
|
* 抖音关注:程序员三丙
|
|||
|
|
* 知识星球:https://t.zsxq.com/j9b21
|
|||
|
|
*/
|
|||
|
|
package sanbing.jcpp.infrastructure.cache;
|
|||
|
|
|
|||
|
|
public interface CacheTransaction<K, V> {
|
|||
|
|
|
|||
|
|
void put(K key, V value);
|
|||
|
|
|
|||
|
|
boolean commit();
|
|||
|
|
|
|||
|
|
void rollback();
|
|||
|
|
|
|||
|
|
}
|