skip to Main Content

How to use Redis as L2 cache on Hibernate?

I have a spring boot application and need to setup Redis as l2 cache on hibernate. My prop file looks like: spring.jpa.properties.hibernate.cache.region.factory_class = package.CustomRegionFactory spring.jpa.properties.hibernate.cache.redisson.fallback=false I created a custom region factory because I don't want to use json or yaml…

VIEW QUESTION

Make Redis as optional

I am using spring boot with Redis.Redis is running as Docker container spring.cache.type=redis spring.redis.host=localhost spring.redis.port=6379 Redis is a memory DB, if it finds data in Redis based on the key, it retrieved from Redis otherwise go into actual db call.…

VIEW QUESTION

Using Bazel java_proto_library on Alpine – CentOS

Using the bazel alpine package, when trying to use the java_proto_library(), it will fails (while it works on archlinux, centos, fedora, debian, opensuse, ubuntu) WORKSPACE: load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") # Protobuf git_repository( name = "com_google_protobuf", commit = "fde7cf7", # release v3.13.0 remote…

VIEW QUESTION

Quartz Trigger Not Firing – CentOS

I have a java web application which runs on tomcat. I am using Quartz 2.3.0 (Updated to 2.3.2, still not working) I am initializing quartz with Properties as follows: Properties properties = new Properties(); properties.put("org.quartz.scheduler.instanceName", hostname); properties.put("org.quartz.scheduler.instanceId", hostname); properties.put("org.quartz.threadPool.threadCount", "5");…

VIEW QUESTION
Back To Top
Search