A method and a system maintain consistency of a cache memory, accessible by multiple independent processes. The processes can share common data, and perform simultaneous data searching operations optionally followed by providing the data to the processes, and data removal/insertion. The searching, removal and insertion operations are comprehensively executed once initiated by processes, excluding one another when they must operate on common data. Removal and insertion are reversible. Providing, removing and inserting the data have a finite execution duration, preventing locking. Particularly, insertion (including a step of releasing an input when a partition of the cache memory is full) if requiring browsing through the entire partition to make a selection, is possibly interrupted if maximum browsing time is reached. Here, the most appropriate input among those already browsed is released. Partition inputs are browsed exhaustively, which results from storing the last consulted address of the partition after each release.