摘要:
/*** @author http://blog.csdn.net/java2000_wl* @version 1.0.0*/public class RedisBillLockHandler implements IBatchBillLockHandler { private static fin... 阅读全文
posted @ 2013-12-02 15:38
快乐就好
阅读(15119)
评论(0)
推荐(0)
摘要:
性能 扩展性 安全性 可读性 阅读全文
posted @ 2013-12-02 15:03
快乐就好
阅读(332)
评论(0)
推荐(0)
摘要:
Attribute的基本概念经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行。实际上在.Net中,Attribute是一个非常重要的组 成部分,为了帮助大家理解和掌握Attribute,以及它的使用方法,特地收集了几个Attribute使用的例子,提供给大家参考。在具体的演示之前,我想先大致介绍一下Attribute。我们知道在类的成员中有property成员,二者在中文中都做属性解释,那么它们到底 是不是同一个东西呢?从代码上看,明显不同,首先就是它们的在代码中的位置不同,其次就是写法不同(Attribute必须写在一对方括符中)。什么是Atrribute首先 阅读全文
posted @ 2013-12-02 14:10
快乐就好
阅读(275)
评论(0)
推荐(0)
摘要:
main.csSystem.Threading.Tasks.Parallel.For(0, 10, i => { TestLock testLock = RedisBillLockWrapper.Wrap(new TestLock()); testLock.Run(); }); Console.Read();testlock.csclass TestLock : MarshalByRefObject { [RedisBillLock("127.0.0.1", "memcache_lock_service_key_test")] public voi 阅读全文
posted @ 2013-12-02 11:35
快乐就好
阅读(865)
评论(0)
推荐(0)

浙公网安备 33010602011771号