Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
anonymous
committed
Jan 29, 2012
1 parent
421cd15
commit 938b59b
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Gem::Specification.new do |spec| | ||
spec.name = 'syncache' | ||
spec.version = '1.2' | ||
spec.author = 'Dmitry Borodaenko' | ||
spec.email = 'angdraug@debian.org' | ||
spec.homepage = 'https://github.com/angdraug/syncache' | ||
spec.summary = 'Thread-safe time-limited cache with flexible replacement policy' | ||
spec.description = <<-EOF | ||
SynCache stores cached objects in a Hash that is protected by an advanced | ||
two-level locking mechanism which ensures that: | ||
* Multiple threads can add and fetch objects in parallel. | ||
* While one thread is working on a cache entry, other threads can access | ||
the rest of the cache with no waiting on the global lock, no race | ||
conditions nor deadlock or livelock situations. | ||
* While one thread is performing a long and resource-intensive | ||
operation, other threads that request the same data will be put on hold, | ||
and as soon as the first thread completes the operation, the result will be | ||
returned to all threads. | ||
EOF | ||
spec.files = `git ls-files`.split "\n" | ||
spec.executables = spec.files.map{|p| p =~ /^bin\/(.*)/ ? $1 : nil }.compact | ||
spec.license = 'GPL3+' | ||
end |