public interface Cacheable extends Serializable
Title: 常用代码打包
Description: Interface that defines the necessary behavior for objects added to a Cache. Objects only need to know how big they are (in bytes). That size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.
While the accuracy of the size calculation is important, care should be taken to minimize the computation time so that cache operations are speedy.
Copyright: Copyright (c) 2006
Company: www.justdos.net
Cache| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCachedSize()
Returns the approximate size of the Object in bytes.
|
Copyright © 2023 onecode. All rights reserved.