com.eshore.uas.extensions.UserCache Maven / Gradle / Ivy
package com.eshore.uas.extensions;
import com.eshore.uas.server.api.User;
/**
* 用户的缓存实现
* @author eshore
*
*/
public interface UserCache {
User byId(String id);
User byMail(String mail);
User byPhone(String phone);
User byAccount(String phone);
void cache(User u);
void remove(User u);
void removeById(String id,String domain);
void removeByMail(String mail,String domain);
void removeByPhone(String phone,String domain);
void removeByAccount(String phone,String domain);
}