Lazy Cache

Simple non-bloated in-memory object ttl caching but Lazy

Лицензия

Лицензия

Группа

Группа

io.github.siddarthsreeni
Идентификатор

Идентификатор

lazy-cache
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Lazy Cache
Simple non-bloated in-memory object ttl caching but Lazy
Ссылка на сайт

Ссылка на сайт

https://github.com/siddarthsreeni/lazy-cache
Система контроля версий

Система контроля версий

https://github.com/siddarthsreeni/lazy-cache

Скачать lazy-cache

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.github.siddarthsreeni/lazy-cache/ -->
<dependency>
    <groupId>io.github.siddarthsreeni</groupId>
    <artifactId>lazy-cache</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.siddarthsreeni/lazy-cache/
implementation 'io.github.siddarthsreeni:lazy-cache:1.0.1'
// https://jarcasting.com/artifacts/io.github.siddarthsreeni/lazy-cache/
implementation ("io.github.siddarthsreeni:lazy-cache:1.0.1")
'io.github.siddarthsreeni:lazy-cache:jar:1.0.1'
<dependency org="io.github.siddarthsreeni" name="lazy-cache" rev="1.0.1">
  <artifact name="lazy-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.siddarthsreeni', module='lazy-cache', version='1.0.1')
)
libraryDependencies += "io.github.siddarthsreeni" % "lazy-cache" % "1.0.1"
[io.github.siddarthsreeni/lazy-cache "1.0.1"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

lazy-cache

Build Status Github All Releases

Simple LazyCache Implementation of a Map.class which has a TTL for each Object defined inside in the Cache.class The cache works on the implementation of a simple FIFO Queue & Lazy removal of Objects from Cache.

Sample Code

  Cache<Object, Object> cache = new Cache.CacheBuilder<>().withExpiry(1000)
                .withTimeStore(new ArrayDeque<KeyPair<Object, Long>>()).build();
  cache.put("hello", "world");
  Assert.assertEquals(cache.get("hello"), "world");
  Thread.sleep(1001);
  Assert.assertEquals(cache.size(), 0);

Quick Start

   //maven 
   <dependency>
     <groupId>io.github.siddarthsreeni</groupId>
     <artifactId>lazy-cache</artifactId>
     <version>1.0.0</version>
   </dependency>

   // scala-sbt 
   libraryDependencies += "io.github.siddarthsreeni" % "lazy-cache" % "1.0.0"

Версии библиотеки

Версия
1.0.1
1.0.0