Replace specialized Cache accessors with general #[]/#[]= methods.

This commit is contained in:
josh committed 2019-02-25 21:22:54 -05:00
1 parent 68118c2707
commit ab2fa1662f
5 files changed
+21 -24

No files matched your search

+10 -13
View File
@@ -70,6 +70,16 @@ module Rscons
initialize!
end
# Access cache value.
def [](key)
@cache[key]
end
# Assign cache value.
def []=(key, value)
@cache[key] = value
end
# Remove the cache file.
#
# @return [void]
@@ -85,19 +95,6 @@ module Rscons
@lookup_checksums = {}
end
# Access configuration data.
def configuration_data
@cache["configuration_data"]
end
# Set configuration data.
#
# @param value [Hash]
# Configuration data.
def configuration_data=(value)
@cache["configuration_data"] = value
end
# Write the cache to disk.
#
# @return [void]