- 浏览: 806130 次
- 性别:
- 来自: 株洲->深圳
文章分类
- 全部博客 (283)
- JAVA (54)
- 数据库 (25)
- Linux (22)
- Spring (9)
- Hibernate (7)
- mybatis (1)
- struts (10)
- javascript (22)
- Web (11)
- 异常 (30)
- 工具 (21)
- pay (9)
- 软件相关 (7)
- 其它 (28)
- python (1)
- 缓存 (9)
- 面试题 (2)
- 代码规范 (14)
- 网络编程 (1)
- 架构设计 (1)
- 程序测试 (3)
- 移动 (1)
- 安全 (2)
- 服务器 (4)
- 程序员 (1)
- php (4)
- 非技术 (7)
- web容器 (3)
- 竞彩篮球 (1)
- nginx (5)
- 加密 (2)
- jquery (2)
- 原理 (2)
- 项目管理 (1)
- www..betradar.com (0)
- www.betradar.com (1)
- 爬虫 (1)
最新评论
-
July01:
有一款web 打印控件StratoIO,浏览器和系统的兼容性都 ...
WEB免费打印控件推荐(4款) -
lihaimian:
你好,有个问题咨询一个,为何我在java中,无法使用与运算符, ...
位运算、异或的实际应用 -
小黄牛:
很好谢谢分享!推荐几篇spring boot基础入门文章:ht ...
Spring Boot 快速入门 (官方quick start) -
littlesheep:
我按照你的方法从新生成了密钥可是还是报者个错误...
狗日的支付宝 -
di1984HIT:
学习了~~~
javassist:增强型的java反射工具,获取方法参数名
simple-spring-memcached 简称:ssm
由于现在的项目spring 为2.5.6,所以使用SSM1.0. SSM2.0以及3.0都是针对spring3.x,SSM3.0做了大量改进.
public @interface UpdateSingleCache { /** * A namespace that is added to the key as it is stored in the distributed cache. * This allows differing object that may have the same ID to coexist. * This value must be assigned. * @return the namespace for the objects cached in the given method. */ String namespace() default AnnotationConstants.DEFAULT_STRING; /** * Of the arguments passed into the cached method, this identifies which * argument provides the id by which the object will be cached. This is a * 0-based array index. This annotation also takes a special value of -1 to signify * that the object being returned is the object responsible for providing the cache key. * @return the index into the arguments array for the item that will provide the id */ int keyIndex() default Integer.MIN_VALUE; /** * Since keys and the actual data to be cached may be different, we also need to know which * parameter (or output) holds the data that we should update the cache with. This is a * 0-based array index. This annotation also takes a special value of -1 to signify * that the object being returned is the data that should be cached. * @return the index into the argument array that holds the actual data to be cached */ int dataIndex() default Integer.MIN_VALUE; /** * The exp value is passed along to memcached exactly as given, and will be * processed per the memcached protocol specification: * * The actual value sent may either be Unix time (number of seconds since January 1, 1970, * as a 32-bit value), or a number of seconds starting from current time. In the latter case, * this number of seconds may not exceed 60*60*24*30 (number of seconds in 30 days); if the * number sent by a client is larger than that, the server will consider it to be real Unix * time value rather than an offset from current time. * * (Also note: a value of 0 means the given value should never expire. The value is still * susceptible to purging by memcached for space and LRU (least recently used) considerations.) * * @return */ int expiration() default 0; }
keyIndex: 方法参数提供缓存key的下标值,下标从0开始. 当keyIndex=-1 缓存key值从返回值中提供.
如果参数为对象,则调用对象@CacheKeyMethod方法计算key值,如果没有@CacheKeyMethod注解则调用对象toString方法.
dataIndex: 参数作为缓存内容的下标值. 当dataIndex=-1,则从将返回值做为缓存内容
expiration: 过期时间 秒为单位 (60*60*24*30 (代表 30 天));
发表评论
-
[转]memcached底层工作原理
2014-10-28 16:40 18331、memcached是怎么工作的? Memcached的神奇 ... -
[转]Memcached性能检测
2014-10-20 15:22 1308Memcached性能检测 ... -
[转]Memcache内存分配策略
2014-10-20 14:24 1280一、Memcache内存分配机 ... -
linux 服务器挂载出问题,导致写文件失败,程序超时
2014-07-11 11:07 0linux 服务器挂载出问题,导致写文件失败,程序超时 -
HessianProxy cannot connect to 'http://localhost
2014-04-12 10:57 3227HessianProxy cannot connect t ... -
位运算、异或的实际应用
2013-12-24 15:53 10764一. 位操作基础,用 ... -
了解LinkedList原理
2013-12-25 14:38 11171.LinkedList介绍 线性链表集合,循环链表ht ... -
了解ArrayList原理
2013-12-18 10:45 10631.ArrayList 介绍 有序集合,按顺序存储元素 ... -
java Cookie的有效期
2013-12-03 19:55 5961Cookie的有效期 Cookie的maxAge决定着Co ... -
10 道 Java 泛型面试题
2013-10-20 19:07 1751关于泛型的面试题在 Java面试中变得越来越常见,因为 Ja ... -
memcached安装步骤
2013-08-10 10:15 1133版本:memcached-1.4.13 由于memc ... -
tomcat 访问记录日志
2013-05-17 01:43 1669Tomcat7.0.xx访问请求记录是默认打开的 ... -
支付宝RSA 公私钥 程序生成,openssl rsa 密钥程序生成,想要多少有多少
2013-05-01 00:21 30041.先配置好openssl 环境变量 保证cmd 输 ... -
MD2withRSA is disabled
2013-04-25 14:44 1707请求https报以一错误: javax.net.ssl.S ... -
狗日的支付宝
2013-04-24 23:26 14633用openssl 生成的密钥老是报以下错误: ja ... -
quartz 启动时会自动启动检测是否有可用的新版本
2013-04-24 20:06 1797日志提示: [org.quartz.utils.Updat ... -
Data truncation: Incorrect datetime value: '' for column 'createTime' at row
2013-03-22 17:11 21862mysql SQL Error: 0, SQLState: ... -
session失效通过头信息判断跳转
2013-03-13 18:06 1626/** * 拦截用户是否登录跳转到登录页 * 页面请 ... -
jsonlib转换树型数据没其它框架好
2013-01-26 14:39 1403jsonlib的性能请看这篇文章:http://wangym ... -
[ava.net.SocketException四大异常解决方案
2012-12-05 12:31 5231java.net.SocketException如何才能 ...
相关推荐
ssm-1.0-SNAPSHOT.war
SSM自定义参数绑定
ssm,就是 Spring 、SpringMVC 、mybstis 的简称。Spring 容器属于协调上 下文,管理对象间的依赖,提供事务机制;SpringMVC 拥有控制器,接收外部请求, 解析参数传给服务层;mybatis 的作用作为一个连接数据库的...
ssm项目整合配置参数!
SSM笔记-参数处理,传入多个参数到sql映射文件、通过POJO:传入多个参数到sql映射文件、通过Map:传入多个参数到sql映射文件
1.2项目概述本文档适用于“中兴Android系统界面软件设计与开发”项目(以下简称“AndroidUI项目”)的开发过程 1.3文档概述本文档依据国家标准《G
程序开发软件:MyEclipse8.5以上 数据库:mysql 后台采用技术: SSM框架(SpringMVC + Spring + Mybatis)前台采用技术: div + css技术要点:1 此系统采用了目前最流行的ssm框架,其中的spingMVC框架相对于struts2...
controller for zybo audio_unfinished_not tested
上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C快速入门pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C快速入门
上海安浦鸣志-集成式步进伺服-SSM产品-SSM24 中文-SSM24S/Q用户手册pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM24 中文-SSM24S/Q用户手册
上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C产品规格pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C产品规格
上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C用户手册pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23C用户手册
ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssmspring配置ssm...
主要介绍了SSM整合中的Log4j的配置详情,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23S/Q产品规格pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23S/Q产品规格
上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23S/Q用户手册pdf,上海安浦鸣志-集成式步进伺服-SSM产品-SSM23 中文-SSM23S/Q用户手册
python库。 资源全名:mypy-boto3-ssm-1.15.1.0.tar.gz
springmvc入门参数绑定,ssm整合。新手来学springmvc时候特别好用。我老师发的。
ssm+lucene
SSM+Oracle实现,此项目上传文件就会自动显示引用链接,方便前端开发人员进行开发,减轻前端开发图片或其他文件占用的内存。The uploaded file of this project will automatically display the reference link, ...