码迷,mamicode.com
首页 >  
搜索关键字:page cache    ( 21282个结果
Drupal Nginx伪静态设置方法
location ~ ^.*/files\/styles\/.*$ { access_log off; expires 45d; error_page 404 @drupal;}location @drupal { if (!-e $reque...
分类:其他好文   时间:2014-06-25 17:49:26    阅读次数:279
MemCached Client集群方案
MemCached Client集群方案By mingjun HouCluster的实现 Memcached作为集中式Cache,就存在着集中式的致命问题:单点问题,Memcached支持多Instance分布在多台机器上,仅仅 只是解决了数据全部丢失的问题,但是当其中一 台机 器...
分类:其他好文   时间:2014-06-25 16:28:29    阅读次数:175
[LeetCode]LRU Cache有个问题,求大神解答
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v...
分类:其他好文   时间:2014-06-25 14:12:42    阅读次数:214
使用GLSL实现的海洋效果 【转】
http://bbs.osgchina.org/viewthread.php?tid=342&extra=page%3D3虽说自己原创的部分并不算多,不过总算是调试通过了,中间有多次严重的死机……估计该换新显卡了~~不过最后的效果还蛮不错? 实现海洋平面的GLSL源代码来自:http://emiug...
分类:其他好文   时间:2014-06-25 13:46:34    阅读次数:705
Parallax Mapping Shader 凸凹感【转】
原文 http://www.azure.com.cn/default.asp?cat=11&page=2Parallax Mapping 就是通过高度图中的高度,对纹理坐标进行偏移,来视觉上欺骗观察者,产生很有凸凹感个幻觉。uniform vec3 fvLightPosition;uniform v...
分类:移动开发   时间:2014-06-25 13:40:31    阅读次数:242
drupal中根据不同的内容类型节点显示不同的样式
在template.tpl中添加如下代码:function lee_preprocess_node(&$variables) { if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) { $var...
分类:其他好文   时间:2014-06-25 12:30:01    阅读次数:245
多个jsp页面共享一个js对象
今天,在项目中遇到一个问题,两个js页面要共享一个就js对象。js全局变量和静态变量都不行,其他苦逼的小农们就不要去强求了。而LZ又不想用cookie来存放,一是不安全,二个人喜好。最后发现一种超级方法来解决这个困扰,那就是用window.top['_CACHE']来存放这个变量,即可实现,不同Jsp页面直接的对象共享。 var share = { /** * 跨框架数据共享接...
分类:Web程序   时间:2014-06-25 06:44:55    阅读次数:253
[LeetCode]LRU Cache, 解题报告
题目 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key...
分类:其他好文   时间:2014-06-24 22:45:43    阅读次数:202
LeetCode || LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if ...
分类:其他好文   时间:2014-06-24 17:25:41    阅读次数:197
CentOS5.8 x86_64系统手动释放内存
线上集群后端某台Web服务器,我们观察到+buffers/cache值(即Linux内存的实际使用情况)一直都是5365左右,就算停掉Nginx+FastCGI程序也是一样,考虑到这台机器经常在使用rsync+inotify,肯定会存在着频繁存取文件。而Linux系统有一个特性:在Linux下频繁存取文件时,就会占用..
分类:其他好文   时间:2014-06-24 16:19:37    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!