码迷,mamicode.com
首页 > 其他好文
那些年我们一起追过的缓存写法(一)
介绍本篇主要说下楼主平常项目中缓存使用经验和遇到过的问题。目录一: 基本写法二:缓存雪崩 1:全局锁,实例锁 2:字符串锁三:缓存穿透四:再谈缓存雪崩五:总结一:基本写法为了方便演示,我们用Runtime.Cache做缓存容器,并定义个简单操作类。如下: public class CacheHe.....
分类:其他好文   时间:2015-01-04 09:44:28    阅读次数:173
2014这一年
时光匆匆啊,转眼间又过了一年,前几天听网易轻松一刻的段子,说用一个字来形容你这一年的生活,然后我想了想:龊、穷、傻.....,哎,一个字怎么足以形容这一年的经历呢?如果非要一个字的话,我觉得自己这一年是:变! 关于2014 1、恋恋不舍的从大学毕了业,感叹专业的知识从离开学校的那一刻基本就已忘干净....
分类:其他好文   时间:2015-01-04 09:46:13    阅读次数:201
在Centos中yum安装和卸载软件的使用方法
在Centos中yum安装和卸载软件的使用方法安装方法安装一个软件时yum -y install httpd安装多个相类似的软件时yum -y install httpd*安装多个非类似软件时yum -y install httpd php php-gd mysql卸载一个软件时yum -y rem...
分类:其他好文   时间:2015-01-04 09:45:03    阅读次数:161
数字间的转换
分类:其他好文   时间:2015-01-04 09:45:14    阅读次数:175
DOS 全集
DOS全集winver 检查Windows版本 wmimgmt.msc 打开Windows管理体系结构(wmi) wupdmgr Windows更新程序 wscript Windows脚本宿主设置 write 写字板 winmsd 系统信息 wiaacmgr 扫描仪和照相机向导 winchat x....
分类:其他好文   时间:2015-01-04 09:45:52    阅读次数:226
技术宅学会几招FFmpeg
介绍FFmpeg的几种常用应用场景...
分类:其他好文   时间:2015-01-04 08:41:25    阅读次数:185
预定义类型(图片)
分类:其他好文   时间:2015-01-04 08:41:49    阅读次数:159
值类型和引用类型(图片)
分类:其他好文   时间:2015-01-04 08:40:49    阅读次数:133
Twitter OA prepare: Rational Sum
In mathematics, a rational number is any number that can be expressed in the form of a fraction p/q , where p & q are two integers, and the denominato...
分类:其他好文   时间:2015-01-04 08:40:57    阅读次数:238
判斷字符串是整型,浮點型等
function checkRates(str){ var re = /^(([1-9][0-9]*\.[0-9][0-9]*)|([0]\.[0-9][0-9]*)|([1-9][0-9]*)|([0]{1}))$; //判断字符串如果是整数不能以0开头后面加正整数,如果是浮点数整数部分不能为两个...
分类:其他好文   时间:2015-01-04 08:40:56    阅读次数:173
[Everyday Mathematics]20150104
设 $a>0$, $$\bex x_1=1,\quad x_{n+1}=x_n+an\prod_{i=1}^n x_i^{-\frac{1}{n}}. \eex$$
分类:其他好文   时间:2015-01-04 08:39:52    阅读次数:146
生活常识
茶斟酒满白酒 满茶 2/3茶要七分满红酒 1/3双手受酒天地君亲师父子和而家不败,兄弟和而家不分乡党和而争讼息,夫妇和而家道兴
分类:其他好文   时间:2015-01-04 08:39:24    阅读次数:172
flex加载元件的几种方式
1、直接在flash中,给元件设置属性,绑定类;1、_loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeDataHandler); _loader.con...
分类:其他好文   时间:2015-01-04 08:37:52    阅读次数:191
Qt Quick里的粒子系统
一个使用 Qt Quick 粒子系统的简单示例……...
分类:其他好文   时间:2015-01-04 07:38:40    阅读次数:438
Left Shift Array with O(l) time complexity and O(1) space complexity
Algorithm 1:public static void main(String[] args) { int[] a = new int[]{1,2,3,4,5,6,7,8,9,10,11,12}; shiftN2(a, 1); System.ou...
分类:其他好文   时间:2015-01-04 07:37:58    阅读次数:159
LeetCode-Implement strStr()-KMP
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Update (2014-11-02):The s...
分类:其他好文   时间:2015-01-04 07:37:15    阅读次数:209
Generate Excel
using DocumentFormat.OpenXml.Packaging;using Ap = DocumentFormat.OpenXml.ExtendedProperties;using Vt = DocumentFormat.OpenXml.VariantTypes;using Docum...
分类:其他好文   时间:2015-01-04 07:35:41    阅读次数:458
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!