Sha256: 4508647394ee95ab02b3cb81aee61442a4e580cbb5e4684aa8ab3d7c734ff9ab

Contents?: true

Size: 690 Bytes

Versions: 20

Compression:

Stored size: 690 Bytes

Contents

module Mittsu
  module Cache
    @@files = {}

    def self.add(key, file)
      @@files[key] = file
    end

    def self.get(key)
      @@files[key]
    end

    def self.remove(key)
      @@files.delete(key)
    end

    def self.clear
      @@files.clear
    end
  end
end

# 	files: {},
#
# 	add: function ( key, file ) {
#
# 		// console.log( 'THREE.Cache', 'Adding key:', key );
#
# 		this.files[ key ] = file;
#
# 	},
#
# 	get: function ( key ) {
#
# 		// console.log( 'THREE.Cache', 'Checking key:', key );
#
# 		return this.files[ key ];
#
# 	},
#
# 	remove: function ( key ) {
#
# 		delete this.files[ key ];
#
# 	},
#
# 	clear: function () {
#
# 		this.files = {}
#
# 	}
#
# };

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mittsu-0.5.0 lib/mittsu/loaders/cache.rb
mittsu-0.4.1 lib/mittsu/loaders/cache.rb
mittsu-0.4.0 lib/mittsu/loaders/cache.rb
mittsu-0.3.3 lib/mittsu/loaders/cache.rb
mittsu-0.3.2 lib/mittsu/loaders/cache.rb
mittsu-0.3.1 lib/mittsu/loaders/cache.rb
mittsu-0.3.0 lib/mittsu/loaders/cache.rb
mittsu-0.2.4 lib/mittsu/loaders/cache.rb
mittsu-0.2.3 lib/mittsu/loaders/cache.rb
mittsu-0.2.2 lib/mittsu/loaders/cache.rb
mittsu-0.2.1 lib/mittsu/loaders/cache.rb
mittsu-0.2.0 lib/mittsu/loaders/cache.rb
mittsu-0.1.7 lib/mittsu/loaders/cache.rb
mittsu-0.1.6 lib/mittsu/loaders/cache.rb
mittsu-0.1.5 lib/mittsu/loaders/cache.rb
mittsu-0.1.4 lib/mittsu/loaders/cache.rb
mittsu-0.1.3 lib/mittsu/loaders/cache.rb
mittsu-0.1.2 lib/mittsu/loaders/cache.rb
mittsu-0.1.1 lib/mittsu/loaders/cache.rb
mittsu-0.1.0 lib/mittsu/loaders/cache.rb