# gs-redisson **Repository Path**: gs-s/gs-redisson ## Basic Information - **Project Name**: gs-redisson - **Description**: gs-redisson - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-17 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Redisson ## Why - distributed collections - distributed locks & synchronizers - TODO ## How ### Collection - [List](https://github.com/redisson/redisson/wiki/7.-distributed-collections/#77-list) -> org.geeks.gsredisson.func.rListT - TODO ### Map & Multimap - RMap -> org.geeks.gsredisson.func.rListT - RMultimap -> org.geeks.gsredisson.func.rListT - TODo ### Lock & Synchronizers - [Lock](https://github.com/redisson/redisson/wiki/8.-distributed-locks-and-synchronizers#81-lock) -> org.geeks.gsredisson.func.rListT - [CountDownlatch](https://github.com/redisson/redisson/wiki/8.-distributed-locks-and-synchronizers/#88-countdownlatch) -> TODO - [Semaphore](https://github.com/redisson/redisson/wiki/8.-distributed-locks-and-synchronizers#86-semaphore) -> TODO - [PermitExpirableSemaphore](https://github.com/redisson/redisson/wiki/8.-distributed-locks-and-synchronizers/#87-permitexpirablesemaphore) -> TODO ## PS - [Doc](https://redisson.org) - [Repo](https://github.com/redisson/redisson) ## Mock Scene ### 资源 1. org.geeks.gsredisson.api.HelloApi中声明一个flag,unsafe方法中,使用flag保护资源的访问 2. 在上述方法中引入Redisson Lock ### 测试 1. org.geeks.gsredisson.api.HelloApiT.main方法,并发访问接口 ### 结论 1. 因为flag是非线程安全的,所以在并发访问时,unsafe出现资源会多次使用,safe则可以保证单次使用