We theoretically analyzed and experimentally demonstrated an injection-locking based all-optical flip-flop memory using a simple and compact tunable V-cavity laser (VCL). A bistable region in the tuning characteristics of the VCL is employed for the flip-flop operation. The state of the VCL can be set and reset by injecting signal pulses at two different wavelengths. The pulse power for both set and reset signal is only about 1 pJ. Short response times of about 150 ps are measured for storing and erasing.