是否有用于播放框架的自动缓存框架? [英] Is there a auto cache framework for playframework?

查看:74
本文介绍了是否有用于播放框架的自动缓存框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于播放框架的自动缓存框架?

Is there a auto cache framework for playframework?

我使用Django开发了我的服务.对于Django,有一个约翰尼缓存(http://packages.python.org/johnny-cache/). Johnny缓存将猴子补丁应用于django模型,并在创建,修改和删除模型时自动使缓存无效.我喜欢它,因为它是如此简单.

I developed my service using Django. For Django, there is a johnny cache(http://packages.python.org/johnny-cache/). Johnny cache apply monkey patch to django models and automatically invalidate cache when model is created, modified, and deleted. I love it because it's so simple.

我有一个计划使用playframework来提供新服务,因为playframework非常棒,但是我找不到任何合适的缓存框架.有人可以向我推荐一个不错的Playframe缓存框架吗?

I have a plan to make my new service using playframework because playframework is awesome, but I couldn't find any appropriate cache framework. Anybody can recommend me a nice cache framework for playframework?

推荐答案

如果您正在谈论:

  • 模型缓存:通过休眠完成,无需执行任何操作
  • 数据缓存:播放嵌入的缓存API 来存储您想要的内容序列化.如果需要,可以启用MemCache实现.对于play 2.0,还有用于内存缓存或Redis的插件.
  • 模板缓存:您可以查看节奏
  • Models caching : Done through hibernate, no need to implement anything
  • Data caching : Play embeed Cache API to store what you want serialized. You can enable a MemCache implementation if you need. For play 2.0 there are also plugins for Memcache or Redis.
  • Template caching : You can have a look at Rythm for that

这篇关于是否有用于播放框架的自动缓存框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆