Changes between Version 14 and Version 15 of RecursorCacheDesign


Ignore:
Timestamp:
Feb 17, 2011, 9:44:52 AM (7 years ago)
Author:
zhanglikun
Comment:

add some inputs/outputs to the interfaces.

Legend:

Unmodified
Added
Removed
Modified
  • RecursorCacheDesign

    v14 v15  
    2424
    2525 * Lookup(): Lookup a message/rrset in the cache.
     26  * Input: query name, query type, query class.
     27  * Output: lookup result and the message if it can be looked up. 
     28 
    2629 * LookupClosestRRset(): Lookup the closest enclosing name.
     30        * Input: same with Lookup().
     31        * Output: the shared_ptr of rrset.
     32       
    2733 * Update(): Update one message/rrset in the cache.
     34  * Input: message/rrset needs to be updated.
     35  * Output: update result(true or false).
     36 
    2837 * !ResizeCache(): Resize a message/rrset cache.
     38        * Input: new cache size.
     39        * Output: operation result(true or false)
     40       
    2941 * !DumpCache(): Dump a message/rrset cache to one file or database.
     42  * Input: the file/database name.
     43  * Output: none.
     44 
    3045 * !LoadCache(): Load  message/rrset cache content from one file or database.
     46  * Input & Output: same with !DumpCache().
    3147
    3248=== Message Cache ===