Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hibernate-redis second-level cache is hash type in redis, how to config expiration time of each hashkey #142

Open
hegphegp opened this issue Nov 15, 2019 · 1 comment

Comments

@hegphegp
Copy link

No description provided.

@hegphegp
Copy link
Author

  • My project is generated by Springboot, the config params are followed these
spring.jpa:
  hibernate.ddl-auto: update
  properties.hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
  properties.hibernate.temp.use_jdbc_metadata_defaults: false
  properties.redis:
    expiryInSeconds:
      default: 120
      hibernate:
        common: 0
        account: 1200
  properties.hibernate:
    cache:
      use_second_level_cache: true
      use_query_cache: true
      region.factory_class: xxx.xxx.cache.hibernate.CacheRegionFactory
      region_prefix: hibernate
      use_structured_entries: true

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant