Table of Contents

Interface ICachedObject

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Interface for objects that support caching with a unique identifier and cache management methods.

public interface ICachedObject

Properties

ID

Gets the unique identifier for this cached object.

int ID { get; }

Property Value

int

Methods

AddToCache(string)

Adds the object to a cache, using the provided object name as a key or reference.

void AddToCache(string objectName)

Parameters

objectName string

The name or key to associate with the cached object.

RemoveFromCache()

Removes the object from the cache.

void RemoveFromCache()