A method (100) for selecting a cache way, the method (100) includes: selecting (110) an initially selected cache way out of multiple cache ways of a cache module for receiving a data unit; the method (100) being characterized by including: searching (120), if the initially selected cache way is locked, for an unlocked cache way, out of at least one group of cache ways that are located at predefined offsets from the first cache way.