lib/mongo/query_cache.rb
def clear_namespace(namespace)
        cache_table.delete(namespace)
        # The nil key is where cursors are stored that could potentially read from
        # multiple collections. This key should be cleared on every write operation
        # to prevent returning stale data.
        cache_table.delete(nil)
        nil
      end
# Clear the section of the query cache storing cursors with results
# from this namespace.
#
# @param [ String ] namespace The namespace to be cleared, in the format
#   "database.collection".
#
# @return [ nil ] Always nil.
#
# @api private
Clear the section of the query cache storing cursors with results
from this namespace.
Clear the section of the query cache storing cursors with results from this namespace .
def clear_namespace(namespace)
        cache_table.delete(namespace)
        cache_table.delete(nil)
        nil
      end
def clear_namespace ( namespace ) cache_table . delete ( namespace ) cache_table . delete ( nil ) nil end
Clear the section of the query cache storing cursors with results
from this namespace.
Clear the section of the query cache storing cursors with results from this namespace .
# The nil key is where cursors are stored that could potentially read from # multiple collections. This key should be cleared on every write operation # to prevent returning stale data.
None
 nil 
namespace
namespace The namespace to be cleared, in the format "database.collection".
namespace The namespace to be cleared in the format " database . collection " .
api
None