Skip to content

Instantly share code, notes, and snippets.

View hayatbehlim's full-sized avatar

Hayat Behlim hayatbehlim

  • Privacera
  • Mumbai
View GitHub Profile
@abhin4v
abhin4v / SpringGuavaCache.java
Last active February 4, 2020 11:45
An implementation of the Spring Cache interface on top of Google Guava cache
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.Cache;
import org.springframework.cache.support.SimpleValueWrapper;
import com.google.common.base.Optional;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheBuilderSpec;