Class | Gem::SourceInfoCache |
In: |
lib/rubygems/source_info_cache.rb
|
Parent: | Object |
SourceInfoCache stores a copy of the gem index for each gem source.
There are two possible cache locations, the system cache and the user cache:
Once a cache is selected, it will be used for all operations. SourceInfoCache will not switch between cache files dynamically.
Cache data is a Hash mapping a source URI to a SourceInfoCacheEntry.
Set the source info cache data directly. This is mainly used for unit testing when we don‘t want to read a file system for to grab the cached source index information. The hash should map a source URL into a SourceIndexCacheEntry.