Class CacheEntry

java.lang.Object
com.loomcache.springboot.entity.CacheEntry

@Entity public class CacheEntry extends Object
JPA entity representing a cached key-value pair in the database.

This is the write-through persistence target. When a cache PUT happens, the entry is written through Spring Data JPA via this entity.

Local H2 runs in PostgreSQL compatibility mode so repository SQL matches the production PostgreSQL manifest defaults.

  • Constructor Details

    • CacheEntry

      protected CacheEntry()
      JPA-required no-arg constructor. Initializes non-nullable fields to safe defaults.
    • CacheEntry

      public CacheEntry(String mapName, String cacheKey, @Nullable String cacheValue, @Nullable String valueType, @Nullable String nodeId)
  • Method Details

    • setCacheValue

      public void setCacheValue(@Nullable String cacheValue)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object