www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/+matlab/+bigdata/+internal/+executor/CacheEntryKey.m

    %CacheEntryKey
% A key that corresponds with one set of cached entries resulting from a
% single execution task. Future executions that want to reuse the cache
% must hold onto this key and provide it in future tasks.
%
% Deleting or clearing this key will clear the cache of any entries
% corresponding with this key.
%

%   Copyright 2015 The MathWorks, Inc.

classdef CacheEntryKey < handle
    properties (SetAccess = private)
        % The ID that represents this cache entry.
        Id
    end
    
    properties (Access = private, Constant)
        % The means by which this class receives unique IDs.
        IdFactory = matlab.bigdata.internal.util.UniqueIdFactory('CacheKey');
    end
    
    methods
        % The main constructor.
        function obj = CacheEntryKey()
            obj.Id = obj.IdFactory.nextId();
        end
    end
end