Share via


InMemoryScriptCache Class

Represents a script cache that stores its scripts in memory.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ScriptCache
    Microsoft.Data.Schema.SchemaModel.InMemoryScriptCache

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class InMemoryScriptCache _
    Inherits ScriptCache _
    Implements ISerializable
[SerializableAttribute]
public sealed class InMemoryScriptCache : ScriptCache, 
    ISerializable
[SerializableAttribute]
public ref class InMemoryScriptCache sealed : public ScriptCache, 
    ISerializable
[<Sealed>]
[<SerializableAttribute>]
type InMemoryScriptCache =  
    class
        inherit ScriptCache
        interface ISerializable
    end
public final class InMemoryScriptCache extends ScriptCache implements ISerializable

The InMemoryScriptCache type exposes the following members.

Constructors

  Name Description
Public method InMemoryScriptCache Initializes a new instance of the InMemoryScriptCache class.

Top

Properties

  Name Description
Public property AllCacheIdentifiers (Overrides ScriptCache.AllCacheIdentifiers.)

Top

Methods

  Name Description
Public method AddOrUpdateScript(String, String) Adds or updates a script.
Public method AddOrUpdateScript(String, String, IDictionary<String, String>)
Protected method AddToCustomMetadataCache Sets the metadata that is associated with a cache entry. (Inherited from ScriptCache.)
Public method ContainsCacheIdentifier Returns a value that indicates whether the given cache identifier is in the script cache. (Overrides ScriptCache.ContainsCacheIdentifier(String).)
Public method DeleteScript Deletes a script from the cache.
Public method Dispose() Releases resources. (Inherited from ScriptCache.)
Protected method Dispose(Boolean) When implemented in derived classes, releases resources. (Inherited from ScriptCache.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateUniqueCacheIdentifier (Overrides ScriptCache.GenerateUniqueCacheIdentifier().)
Public method GetAllCustomSchemaDataFileNames (Overrides ScriptCache.GetAllCustomSchemaDataFileNames().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMetadata Returns a read-only dictionary of metadata that is associated with the provided cache identifier. (Inherited from ScriptCache.)
Public method GetObjectData Populates a SerializationInfo object with the data required to serialize the InMemoryScriptCache object.
Protected method GetObjectDataForCustomMetadataCache Adds custom metadata for all cache entries to the provided serialization information. (Inherited from ScriptCache.)
Public method GetScript(String) Returns the script for the given cache identifier. (Overrides ScriptCache.GetScript(String).)
Public method GetScript(String, Int32, Int32) Returns the script for the given cache identifier. (Overrides ScriptCache.GetScript(String, Int32, Int32).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method IsCustomMetadataCacheUnchanged Returns a value that indicates whether the custom metadata cache is unchanged. (Inherited from ScriptCache.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method RemoveFromCustomMetadataCache Removes the metadata from the specified cache entry. (Inherited from ScriptCache.)
Protected method SetCustomMetadataCache Sets the custom metadata cache for serialization. (Inherited from ScriptCache.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetMetadata Returns a value that indicates whether retrieval of the specified metadata was successful. (Inherited from ScriptCache.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace