package com.alxgrk.ressign.repos;

import java.util.Collection;
import java.util.Optional;

import com.alxgrk.ressign.models.CachedUser;

public interface UserRepository {

    Collection<CachedUser> findAll();

    Optional<CachedUser> findById(String userId);

    Optional<String> store(CachedUser cachedUser);

    Optional<CachedUser> update(CachedUser cachedUser);

    boolean delete(String accountId);

}
