FLUSH(OC)

Shore Programmer's Manual - 3 November 94

NAME

flush \- remove object from object cache

SYNOPSIS

#include <ShoreApp.h>
shrc REF(T)::flush() const;

DESCRIPTION

The flush method removes the referenced object from the object cache. If the object is modified, then it is first written back to the server. If the object is not in the cache, then no action is taken.

It is never necessary for an application to call this method, as all objects are flushed from the object cache when a transaction commits. However, applications can use this method to control the contents of the object cache. Note that this method does not release any locks held on the object; all locks are held until the end of the transaction in which they were obtained.

To fetch an object into the cache, use the fetch method (see fetch(oc) ).

VERSION

This manual page applies to Version 0.1 of theShore software.

SPONSORSHIP

The Shore project is sponsored by the Advanced Research Project Agency, ARPA order number 018 (formerly 8230), monitored by the U.S. Army Research Laboratory under contract DAAB07-91-C-Q518.

COPYRIGHT

Copyright (c) 1994 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.

SEE ALSO

fetch(oc) , is_resident(oc) , valid(oc) .